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.
Questions tagged [static-content]
134 questions
5
votes
1 answer
Nginx not serving CSS correctly in simple PHP project
I've seen several examples of this now: Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://localhost:3001/assets/css/bootstrap.min.css". But, I've not been able to understand what might be causing it.
The CSS files…

ankush981
- 257
- 2
- 4
- 11
5
votes
2 answers
Nginx reverse proxy in nested locations
I'm using Nginx as a reverse proxy for multiple applications in multiple servers and I'm trying to add common cache directives to static files of each application.
My original configuration is something like this:
location /app1{
...
…

Jose Antonio
- 151
- 1
- 2
5
votes
0 answers
Creating a seperate static content site for IIS7 and MVC
With reference to this serverfault blog post: A Few Speed Improvements where it talks about how static content for stackexchange is served from a separate cookieless domain...
How would someone go about doing this on IIS7.5 for a ASP.NET MVC…

JK01
- 339
- 2
- 7
- 16
5
votes
12 answers
Optimum way to serve 70,000 static files (jpg)?
I need to serve around 70,000 static files (jpg) using nginx. Should I dump them all in a single directory, or is there a better (efficient) way ? Since the filenames are numeric, I considered having a directory structure like:
xxx/xxxx/xxx
The OS…

Ahsan
- 103
- 1
- 1
- 7
4
votes
4 answers
Statically mirroring a heavy trafficked site, CloudFlare as DNS
I run a fairly heavy trafficked website and due to some unfortunate incidents the machines that are in my cloud at Linode went down. And I have only a single Load Balancer machine exposed to the outside world (one IP).
Also my site is a candidate…

Quintin Par
- 4,373
- 11
- 49
- 72
4
votes
4 answers
Alternative to heroku or google app engine for static files
I'm creating a simple site for my family and which is basically just static files (I don't want a CMS).
I've tried using heroku and google app engine but heroku wind down the server which yields a 30s delay on some requests and google app engine…

Nicklas A.
- 211
- 1
- 9
4
votes
2 answers
non-www domains prevent hosting of static content on the same domain, correct?
Flaw to using non-www domain a canonical?
I love the idea of short, clean urls like example.com over www.example.com, and certainly whichever one is used should redirect to the other. However, as I have researched the matter over time, I've come to…

Kzqai
- 1,278
- 4
- 18
- 32
4
votes
2 answers
Etag configuration with multiple apache servers or CDN / How does Google do ETags?
I have an application which is served from two apache2 servers and I want to configure the ETags on static content. In the future I would also like to use a CDN. I see that this is supposed to be a problem because the Etag information will be…

perrierism
- 179
- 3
- 9
3
votes
3 answers
IIS refuses to serve static .gltf files
I am using three.js library with GLTFLoader.js. I downloaded some free 3D model with .gltf extension (it also came with a .bin file, and a folder with textures).
I can access every other file in this folder from IIS (10) as static content, except…

Celessor
- 61
- 1
- 7
3
votes
2 answers
Apache serving static files within VirtualHost
I have the following VirtualHost configuration.
ServerName myservername.website
ProxyPass http://localhost:5000/
ProxyPassReverse http://localhost:5000/
…

tgandrews
- 155
- 1
- 1
- 7
3
votes
1 answer
S3 Static Website hosting - restricting access from IP Range
Is there way by which can we enforce the access only from a Particular IP Range for S3 Static Website hosted site ?

Naveen Vijay
- 390
- 6
- 18
3
votes
2 answers
Nginx location block - only match actual files
I have the following nginx config:
server {
listen 8080;
root /site_root/web;
index index.html;
server_name www.mysite.com;
location / {
try_files $uri @rewriteapp;
}
location @rewriteapp {
rewrite…

calumbrodie
- 192
- 1
- 3
- 12
3
votes
1 answer
How to avoid Error 403 Forbidden : Apache virtual host configuration issue
I am quite a newbie to the Apache Server (2.0, I know it is a bit too old, however my workplace demands me to learn it as it is the version we are using)and now trying to get Apache work with Jboss (Jboss as the application server, Apache fronting…

user2986175
- 155
- 2
- 8
3
votes
2 answers
CloudFlare CDN and static site with root on Amazon S3
I've set up an S3 bucket to host my static site.
Now I am trying to wrap CloudFlare around this, but I get the following warning when adding a CNAME entry for the root domain in CloudFlare's DNS manager:
CNAME example.com …

Harper
- 133
- 1
- 5
3
votes
3 answers
Ngix vs G-WAN for static content?
Can someone point me to recent benchmarks on the two? Also more info about G-WAN would be nice, since up until now I never heard about it. I need the fastest server for static files.

ilija139
- 149
- 1
- 5