Questions tagged [static-content]
Static content like a static web page is delivered to the user's web browser exactly as stored, in contrast to dynamic content, which is generated for each request by a web application.
138 questions
1
vote
1
answer
84
views
NGINX URL rewrite (or something?)
Hosting static content currently and trying to get NGINX to do what I want seems to be a nightmare.
I've basically got this setup:
root web directory -> pages -> sub-folder > webpage.html
I ...
0
votes
1
answer
80
views
Cloudflare accept `.html` at end of URLs
I moved a static website, built with 11ty, from AWS to Cloudflare pages. I am having a problem: Cloudflare is not handling .html at the end of URLs the same way that AWS was.
So, for example --
This ...
1
vote
1
answer
216
views
apache2 out of memory when serving large static files
I am running an apache2 server with several virtual hosts. I run it on a rather resource constrained raspberry pi 4. In particular RAM is very tight (4GB). There isn't a whole lot of traffic, I mainly ...
1
vote
1
answer
1k
views
Django + Nginx + Gunicorn - Static files not found
I'm using Django+Gunicorn+Nginx for my web application in a Ubuntu 22.04.4 server. I followed this guide until the end and my web is running in production. However, static files are not working (css, ...
0
votes
1
answer
82
views
Is possible return a static page in https virtual host using lighttpd?
It seems like redirect is not done.
If I put URL https://test2/static_page in browser it works but if I put https://test1 don't redirect
SERVER["socket"] == ":443" {
$HTTP["...
0
votes
0
answers
1k
views
Nginx Reverse Proxy custom location not serving static files
I'm trying to serve 2 different websites under the same subdomain depending on the location.
Using the GUI from Nginx Proxy Manager Docker container I've managed to set up the initial domain https://...
1
vote
1
answer
1k
views
Best way to serve static folder that is not presented in frontend build
I have the following situation. Web content of my app is located in a standard directory /var/www/my.domain.com/html/. Also I have a folder users_statics somewhere inside this directory, where my app ...
0
votes
1
answer
689
views
S3 static website is loading pretty slow on private window mode only
I'm not sure is this is an S3 issue or something with my website but would like to ask the community for some help.
Configuration: I have a static website (about 700KB) hosted on S3. My .css and .js ...
0
votes
1
answer
637
views
Can't access static site S3, Cloudfront, Route53
I apologize if this needs to be split into two questions, but I'm trying to set up a static site using S3, a CloudFront distribution, and a Route53 domain. If I try to access laszloffy.com, I receive ...
0
votes
1
answer
346
views
nginx append query parameter with encrypted value to a react application
I want to send the DN field from the client certificate ($ssl_client_s_dn), but I want to send it encrypted.
In the question nginx append query parameter to a react application it is explained how to ...
0
votes
0
answers
684
views
NGINX proxy not serving static content
I've setup a proxy NGINX that access a Wordpress server on 10.0.0.151:
#
# Default server configuration
#
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/...
0
votes
1
answer
642
views
Prevent Apache2 from executing CGI in Static Directory
I am running an Apache 2 web server running on Ubuntu 20.04 LTS. I have a Python CGI handler enabled for the /var/www/html directory, which is the DocumentRoot. I am wondering how to exclude a certain ...
0
votes
0
answers
1k
views
Apache2 alias loading from document root instead of alias directory
I have problem with apache2.
I'm new to it and I'm trying to solve some problems.
I have a server running debian with apache2.4 installed and 3 web-site running. A Shiny Server, a django website and a ...
2
votes
1
answer
6k
views
Nginx location block for static content without listing every extension?
I need to add cache policy to my static content.
Initially, I had manually listed all the extensions I deemed static, which is what almost every answer suggests:
location ~* \.(jpeg|jpg|gif|png|ico|...
0
votes
2
answers
790
views
Tool to create pre-compressed [Brotli] files
I am trying to pre-generate compressed brotli files in designated directories for static html, css and js files.
I found a rust tool here – https://github.com/neosmart/static-compress
Besides this, ...