Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

-1
votes
1answer
36 views

Serve static files from directory depending on http referrer inside of nginx [closed]

My server hosts images, but the content of images have to be different for the same link and have to deepens on http referrer. For example: Website 1 load image website1.jpg from ...
1
vote
1answer
25 views

IIS returns 404 when trying to access static files on certain file types

I have a specific file type of .notebook that IIS is blocking. I tried going into request filtering and adding .notebook with allow set to true, but I still get the 404. Anything else in this folder ...
2
votes
1answer
32 views

fcgi to serve static files with nginx

Maybe I'm wrong, so before to ask my question, I'll explain a little what I'm trying to set upĀ : I've a VPS where I want to have multiple users sites, with permission denied to all users to see the ...
0
votes
1answer
107 views

How to serve static files for multiple Django projects via nginx to same domain

I am trying to setup my nginx conf so that I can serve the relevant files for my multiple Django projects. Ultimately I want each app to be available at www.example.com/app1, www.example.com/app2 ...
0
votes
2answers
250 views

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: ...
0
votes
1answer
40 views

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 ...
0
votes
1answer
83 views

Nginx issues with freshly overwritten images

I have this problem: I read directly (as static content) an image from https://whatever.com/static/image.png . The image is displayed properly. I overwrite this file with another one and I try ...
1
vote
1answer
2k views

Nginx redirect all request that does not match a file to a php file

I'm trying to get all request to: http://mydomain.com/downloads/* redirect to http://mydomain.com/downloads/index.php except if the requested file exist in /downloads/ ex: ...
1
vote
1answer
76 views

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 ...
0
votes
0answers
99 views

IIS8.0 Response size limit?

I am trying to serve up some hefty (really hefty) static web pages. The one I am playing with is 20Mb, and contains image links to about 5000 images. I'm seeing some errors, where after a certain ...
0
votes
1answer
137 views

serving static assets via http is really slow compared to sshfs (apache2/nginx)

After migrating to a new VPS I had some users complaining about slow loading images on their sites. After creating some test files with dd I realized that I can download all files via sshfs with full ...
1
vote
1answer
752 views

Static file permissions with Nginx, Gunicorn and Django

I attempting to setup a Nginx server up with a Gunicorn WSGI server running Django behind.. The setup all seems to runs except i have a permissions issue. I have setup aliases to /media and a /static ...
0
votes
1answer
38 views

Apache memory usage with 404

We're facing a problem with an apache server serving static files. When there are lots of requests for a resource that doesn't exist the apache starts to grow in number of processes and memory usage ...
0
votes
0answers
278 views

Apache reverse proxy + serving static files

I have a Rails instance running on port 3001 on my machine and I want to proxy it through Apache on port 3002 letting Apache serve the static files located under assets, so that ...
1
vote
2answers
312 views

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 ...
3
votes
1answer
2k views

How to configure Glassfish + NGINX to serve static files with NGINX?

I have a EC2 ubuntu with Glassfish v3 + Nginx setup to host my java web application. This application is deployed as a WAR file to Glassfish . The NGINX is currenty passing all request to the ...
0
votes
1answer
249 views

IIS 7 - Static Resource Or HttpHandler

This is probably a fundamental question concerning IIS 7. I currently have a website running on IIS 7 on my local machine. I've noticed that when I type in a URL of the form ...
1
vote
1answer
1k views

Serve different files for specific user agents using nginx

Using nginx, how do you serve different static files for different user agents? For example, if the current user is using an iPhone, they should be served mobile_index.html, whereas all other user ...
1
vote
2answers
548 views

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 ...
0
votes
1answer
263 views

nginx static content

I have a following deployed scenario. 1x nginx as frontserver for gzip and ssl ofload serving all request to the same server haproxy service listening on 127.0.0.1:8000 to do loadbalancing for three ...
1
vote
2answers
2k views

nginx status code 200 and 304

I'm using nginx + passenger. I'm trying to understand the nginx response 200 and 304. What does this both means? Sometimes, it responses back in 304 and others only 200. Reading the YUI blog, it seems ...
7
votes
1answer
7k views

Why isn't IIS serving my static CSS / JS files?

I added an ASP.NET MVC3 site to ISS (which was working fine in the debugger). When viewing the site in a browser, everything appeared to be working fine except that all of the CSS and JS files were ...
1
vote
1answer
145 views

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. ...
3
votes
3answers
4k views

What headers to add for most efficient file caching?

So I've this response header for static files on my nginx server. Cache-Control:max-age=2592000 Connection:keep-alive Date:Sat, 11 Dec 2010 22:28:13 GMT Expires:Mon, 10 Jan 2011 22:28:13 GMT ...
0
votes
2answers
459 views

How to create a share folder for multiple domains on Dreamhost

I have a Virtual Private server with Dreamhost. I'm trying to create a shared folder that all of my domains can access. In the folder I'd like to put PHP classes, and even static files like ...
1
vote
3answers
384 views

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 ...
1
vote
1answer
424 views

How do I work with static file server?

I'm working on a project where we need to store static files (user images, videos, etc.) on a different server (nginx serves static files). I haven't worked with a separate static file server before, ...
1
vote
4answers
212 views

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 ...
0
votes
1answer
316 views

Apache - Serving static files from different subdomain + machine

Here's the scenario A site is running on this domain - www.someserver.com I'm going to host subdomain.someserver.com on my machine. Let's say all the image files are under the directory 'img'. I ...
1
vote
3answers
337 views

What is the best way to optimize a Windows Server 2008 box running IIS7 to serve only static files?

I would like to have our web applications pull static content (css, js, images) from a static file server running Windows Server 2008 and IIS7. What sort of optimizations would you make to the server ...