Questions tagged [static-content]

128 questions
96
votes
5 answers

Disable caching when serving static files with Nginx (for development)

We are using Nginx to serve static files on a development platform. As it is a development platform, we'd like to disable caching so that each change is propagated to the server. The configuration of the VHost is quite simple: server { server_name…
Olivier Chappe
  • 961
  • 1
  • 7
  • 4
15
votes
3 answers

IIS7 returns blank when static content requested

I am trying to configure a demo machine which is EEEPC with Windows 7 Home Premium edition all the drivers properly loaded (don't ask me why it's Home edition) with IIS7 installed. I've deploy the application to be demo-ed on the machine which is an…
chakrit
  • 417
  • 2
  • 6
  • 15
14
votes
3 answers

Access Amazon S3 Static Website Through IPv6

I host a static website on Amazon S3 with DNS hosted on Amazon Route 53. I'd like my site to be accessible via IPv4 and IPv6 (because it's about time). When I use the Route 53 AWS Management Console to add an A (IPv4) "Alias" record for my S3…
14
votes
2 answers

Using Google's App Engine as CDN for static files

I am planning on moving my static files to Google's App Engine. I was wondering if this is a good idea to do. I have read that is it possible that Google will cache your files on multiple locations, which is a good thing in my opinion. The setup…
Saif Bechan
  • 10,892
  • 10
  • 40
  • 63
13
votes
3 answers

Can I use nginx environment variables within static files that nginx serves?

If I use a environment variable in the nginx config, and nginx is configured to serve only static files (html,js,css - e.g. a AngularJs app), is there any way I can use the environment variable within a JS file that nginx serves? Or is the only way…
Tom
  • 4,157
  • 11
  • 41
  • 52
12
votes
1 answer

Reverse proxy application and its static files with Nginx

I am trying to do something that seems to me very simple but I must be stupid or miss something very obvious because I cannot figure it out. I want to access the multiple web applications running on my server with a unique prefix for each one of…
12
votes
3 answers

how much RAM for heavy static content serving?

I want to make a server for my static content. I need to serve some 3-10 mb files - a lot. (I will also put on this server some .js and .css and images from my websites). I thought of nginx and G-WAN ( http://trustleap.com/ ). What I don't know is…
cripox
  • 225
  • 1
  • 2
  • 6
11
votes
2 answers

Nginx - Serve static content from a cookieless domain

I'm using the "page speed" extension for Firebug to try to optimise a website and I'm currently working on the following suggestion: "Serve static content from a cookieless domain". I have created a separate sub-domain for some content so that I…
Tom
  • 4,157
  • 11
  • 41
  • 52
10
votes
3 answers

Serve static content using docker + nginx + php-fpm

I'm trying to configure a php webapp using docker. The idea is to run the app using php-fpm in a standalone container and have another container that will run nginx. The idea for this setup is to use that same nginx container to proxy requests to…
ThisIsErico
  • 211
  • 2
  • 5
9
votes
3 answers

What's the best way to create a static backup of a website?

I have an old Joomla! site that I would like to convert to a static set of html pages (since it's not being updated anymore and I don't want the overhead of having a MySQL db running for something that is never updated). Is there a command-line tool…
CamelBlues
  • 303
  • 4
  • 10
9
votes
2 answers

Apache ProxyPass ignore static files

Having an issue with Apache front server connecting to a Jetty application server. I thought that ProxyPass ! in a location block was supposed to NOT pass on processing to the application server, but for some reason that is not happening in my case,…
virtualeyes
  • 665
  • 3
  • 10
  • 28
7
votes
2 answers

Force Nginx to send Content-Length header for static files with gzip?

We're running Nginx 0.7.65[-1ubuntu2.3]. I've just noticed that when serving local static files using an alias directive and gzip on, the Content-Length header is not getting sent. Since it's serving files from the local filesystem, it shouldn't…
David Eyk
  • 667
  • 1
  • 7
  • 17
6
votes
2 answers

Django doesn't find CSS files for admin pages using uWSGI

Even if I followed the official instructions, when I start a Django test site using uWSGI, CSS files for the admin interface are not loaded. If I open the URL of a CSS file, for example http://localhost:8443/static/admin/css/base.css, I get a 404…
Marco Sulla
  • 207
  • 2
  • 4
  • 15
6
votes
1 answer

Nginx sending 2 Cache-Control headers

Iam serving my static content with ngnix. location /static { alias /opt/static/blog/; access_log off; etags on; etag_hash on; etag_hash_method md5; expires 1d; add_header Pragma "public"; …
optixx
  • 216
  • 2
  • 7
5
votes
2 answers

Do I need to configure SVG images showing in nginx?

I have SVG images in a folder and also a single PNG file to make sure these images are shown on the page. My nginx config is basically this: server { listen 80; location / { root www; } } The images are in www/images…
Sergei Basharov
  • 379
  • 2
  • 3
  • 13
1
2 3
8 9