Questions tagged [static-files]
76 questions
1
vote
3 answers
Nginx FastCGI not caching static files?
I configure fastCGI to cache with NginX. It work with .php file, but i can't cache static file like .jpg, .mp4...
My infomation when check with cURL:
curl -I http://192.168.1.223/music.php
HTTP/1.1 200 OK
Server: nginx
Date: Mon, 07 Dec 2015…

dvthanh
- 11
- 3
1
vote
1 answer
Nginx serving static files via Unicorn upstream (tcp)
I'm trying to create a rails app with load balancer. App is running but I don't know how to serve static files. All examples assume that nginx and unicorn running on the same machine.
Here is the minimal configs:
Machine A: Nginx
Machine B: Unicorn…

mef_
- 113
- 3
1
vote
3 answers
Why my browser wouldn't load all image resources at once?
I am trying to optimize the loading time of a webpage. Currently, the main http request can be done in under a second, however, the consenquent loading of images seems "to…

Enuy
- 111
- 1
- 3
1
vote
2 answers
Nginx rewrite URLs but not static files
I need to rewrite URLs like
http://www.domain.com/blog/wp-content/uploads/this-is-a-static-file.jpg
to
http://www.domain.com/wp-content/uploads/this-is-a-static-file.jpg
I am using this rule:
location /blog/wp-content$ {
rewrite…

arg
- 13
- 1
- 4
1
vote
1 answer
Apache: mapping multiple directories to the same location
I would like to map multiple directories to the same location with Apache, expecting a behaviour similar to this: suppose that the /static location is to be backed by directories /srv/static1 and /srv/static2. Then if /static/image.png is requested,…

Giovanni Mascellani
- 175
- 8
1
vote
1 answer
Nginx: Disallow index.html in URL
We're generating a site consisting of only static files (using Assemble).
Having the .html extension on URLs looks so nineties, so we generate every static HTML file in its own directory and call it index.html. For example, the url…

Martin Vilcans
- 111
- 2
1
vote
2 answers
Why is IIS 7.5 showing two requests for static files?
We are running IIS 7.5 on Windows Server 2008 64-bit. Mainly, we run Coldfusion 9 and don't really use ASP.NET stuff.
Kind of weird, but when we look at the "Worker Processes" module (on the main server entry in the "IIS" group) and view the…

jzimmerman2011
- 323
- 1
- 4
- 12
1
vote
1 answer
Static file download from browser breaking in varnish but works fine in Apache
I would at first like to thank everyone at serverfault for this great website and I also come to this site while searching in google for various server related issues and setups.
I also have an issue today and so I am posting here and hope that the…

Ron
- 11
- 2
1
vote
1 answer
Coldfusion App: Database vs Static File Performance Under Heavy Load
We have a CF8 web application that can be run in two modes: Database or Static file. Under heavy load, the Database mode out performs the Staticfile mode noticeably. And I am trying to figure out why.
First some context:
We run Solaris Zones &…

KM.
- 1,786
- 2
- 18
- 31
1
vote
3 answers
What are the advantages of using an image server?
An image server for static images and possibly other static files (css, js, etc). Are they only used for large/popular websites? Secondly, are they only really beneficial when the images undergo some sort of processing (e.g. resizing)? I'm not a…

Gabe
- 167
- 8
1
vote
4 answers
Scaling a GIF hosting site
My friend runs a popular Youtube-to-GIF conversion site. Right now, he has converted 250,000 Youtube videos to GIFs (each video gets 6 thumbnails for 1.5m total GIF files) and serves about 80TB of bandwidth per month.
His server is IO blocking --…

linkedlinked
- 446
- 1
- 3
- 11
1
vote
0 answers
NGINX file server with symlinks
This is a bit of a beginner question, but I'm trying to make Nginx serve a static file server that contains symlinked folders. Eg, the root directory might contain directories A and B, which each contain symlinks to one other, eg A/B -> B and B/A ->…

ak0000
- 111
- 3
1
vote
1 answer
Apache2 - How to serve static files on a specific folder?
I have 2 virtual hosts serving 2 different sites in my Ubuntu Server 20.04 both in port 80 and 443.
I want to use the same server to serve some static files for download on a custom port, let's say 8080.
I added a share_backup_folder.conf…

Vinicius Franco
- 11
- 1
- 2
1
vote
1 answer
Nginx static files caching from different folders
The problem is nginx does not display images and shows 404 not found on some folders.
When i remove caching from config everything works fine.
Trying to configure nginx to cache static files with this config
location ~*…

merdan
- 113
- 5
1
vote
1 answer
nginx serve static files AND reverse proxy
I want the browser to be in constant communication (websocket) with my backend servers as they are constantly receiving data. But I also want static files to be served to them by nginx. In other words, I want nginx to serve static files AND ALSO…

Normajean
- 131
- 2
- 5