Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
25 views

Apache2 proxy to serve a static page

I would like to stand up an apache2 proxy server (proxy.domain.internal 10.2.2.10) to do the following: Transparently serve local content (http://proxy.domain.internal:8085/arbitraryContent) to ...
0
votes
1answer
36 views

A server cluster for static files

I apologize in advance if this question may (by necessity) be somewhat broad. I will try my best to keep it in the format of a valid question. I am currently setting up a backend for serving large ...
0
votes
2answers
60 views

Nginx rewrite location internally to serve static content

I'm trying to serve static content from an endpoint that differs in hierarchy structure than the actual root directory structure. This is the result I'm trying to achieve: ...
0
votes
0answers
121 views

nginx, tuning time to first byte with static content

Or to rephrase my question: what factors could affect TTFB for static content when using nginx? Specifically, Time To First Byte excluding SSL or DNS overhead. I can imagine gzip level ...
0
votes
0answers
184 views

IIS 7.5 returns 404 without default document

I'm trying to migrate my company web site to a VPS hosted Windows Server 2008 R2. It runs IIS 7.5 by default. I have created a dedicated application pool, and assigned full control privileges to the ...
1
vote
1answer
302 views

varnish file download fail from user session

I have 2 varnish 3.0.4 servers on edge of an Apache cluster (fallback director). On one of my sites, users log in to download static content such as pdf, images (jpg,jpeg,png, gif), xls/xlsx etc. All ...
2
votes
1answer
932 views

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

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

Redundant web static content storage - what technologies? (small scale) [closed]

Current situation of our static web servers: 2x 2U servers full of SSDs (raid5) for storing data data are written to them only through our applications (*) huge amount of small image files (one ...
0
votes
1answer
55 views

IIS 7.5 Scripts-folder outside of Content-folder

I have just setup my asp.net site with IIS and I've found a problem with my javascript-files. From my visual studio project the files are stored in /Scripts/. But when I have the scripts in /Scripts/ ...
2
votes
2answers
403 views

With PHP installed, Apache is (comparatively) slow at serving static content?

First some background on how I installed PHP, Apache, and some Apache modules: # apt-get -y install php5 php-pear libapache2-mod-php5 php-apc php5-mysql php5-mcrypt php5-xmlrpc php5-curl php5-imagick ...
0
votes
1answer
865 views

nginx serve static files directly if not matched by rewrite rules

I just moved from apache to nginx and I'm struggling with some configuration settings that doesn't seem to work. I have these rules from my previous .htaccess file that I'm trying to convert to nginx ...
0
votes
1answer
1k views

Forcing Nginx to send Content-Length headers when serving 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 ...
0
votes
1answer
139 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 ...
0
votes
2answers
130 views

How to make fallback for images correctly?

I have the following location that handles my assets: location ~ \.(?:css|js|jpe?g|png) { root /var/static; } So if a request is www.mysite.com/img/file.png the file.png will be taken from ...
1
vote
1answer
51 views

Remove unrecognised staticContent mimeMap entries

On a default installation of IIS there are approximately 350 <mimeMap /> elements specified in the <staticContent> section. Some file extensions seem alien to me e.g. .sv4cpio, .cpio, ...
1
vote
2answers
1k views

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

How to ensure all public mirrors contain same content?

Basically I plan to have some files mirrored on multiple servers on different providers. A unique cname will auto-balance the traffic across all available mirrors and will serve from the closest to ...
0
votes
2answers
709 views

Lighttpd as tomcat proxy with static content serving

How can I configure Lighttpd to serve static content on specified URL address (eg. www.my-domain.com/static) from specified directory (e.g. /var/www/my-domain/static) ? Rest of requests must be ...
0
votes
1answer
106 views

autoscale static content on ec2 using local cache

Hello Serverfault members. I want to achieve the following setup on EC2: A load balancer starts and stops instances which only serve static content. (a javascript based application) I do not want to ...
0
votes
3answers
331 views

Best way to serve static content

For the moment, I serve my static content (jpg, png, css) from mydomain.com like this: location ~* \.(jpg|jpeg|gif|css|png|js|ico)$ { root /home/www/mydomain/current/web; add_header ...
0
votes
1answer
2k views

IIS8 not serving static content, even though Static Content role is installed

We have a new installation of Windows Server 2012 acting as a development server. I'm attempting to install DotNetNuke to a site, but when I run the install wizard, while the site comes up, static ...
0
votes
1answer
212 views

Deploying a static site on AWS EC2/nginx: what am I doing wrong?

I set up a micro instance (Ubuntu, 32 bit) and assigned an elastic IP (23.23.245.104) Public DNS: ec2-23-23-245-104.compute-1.amazonaws.com I successfully ssh'ed to the machine and installed nginx. ...
2
votes
4answers
1k views

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

Media deployment advice

We have applications that have a lot of static content (>60gb) which is updated frequently. It used to be we would manually rsync from vendors and between environments, and our code would rely on ...
0
votes
1answer
225 views

Caching all files in varnish

I want my varnish servers to cache all files. At backend there is lighttpd hosting only static files, and there is an md5 in the url in case of file change, ex. ...
-1
votes
2answers
397 views

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

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

Setup nginx for serving static only via a subdomain

All I want to do is to set up a nginx server to serve static files ONLY. This nginx server sits behind a HAProxy, and HAProxy directs all the requests for static files to this nginx server. I have ...
2
votes
1answer
3k views

Nginx Cache-Control

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

Nginx static files from multiple static sources

I have a Django application running on Gunicorn. I am trying to configure Nginx to serve static files. I have two upstream servers, they come from two different directories, and two different Gunicorn ...
1
vote
2answers
321 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 ...
0
votes
2answers
1k views

Nginx static files exclude one or some file extensions

I'm serving up a static site via nginx. location ~* ...
1
vote
1answer
2k views

How to make sure clients update their browser cache when my website is updated?

I am using the HTTP 1.1 Cache-Control header to implement client-side caching. Since I update my website only once a month I would like the CSS and JS files to be cached for 30 days with ...
-4
votes
3answers
312 views

How do i mitigate DDOS attacks on static servers?

Here is a slightly different take on DDOS attacks. Rather than a server with dynamic content being attack i was curious how to deal with attacks on servers with STATIC CONTENT. This means cpu tends to ...
1
vote
2answers
962 views

Structuring an nginx config for static content and php

I'm trying to write an Nginx config with the following semantics, expressed in hopefully-readable psuedo-config: location /dir1/ /dir2/ { if (matches a .php file) { serve with php } else if ...
0
votes
1answer
254 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 ...
0
votes
3answers
613 views

Ngix vs G-WAN for static content? [closed]

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

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

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

Google Analytics setting cookies on static content despite being on entirely separate domain

I recently decided to comply with the YSlow recommendation that static content is hosted on a cookieless domain. As I already use the root of my domain (donaldjenkins.com) to host my website—on which ...
1
vote
0answers
473 views

IIS 7.5 Static File Request to localhost occasionally taking 4 minutes

We are hosting a web application on a series of Windows 7 machines (accessed via localhost), which has IIS 7.5, and some users are sporadically getting stuck in the middle of a request. After ...
1
vote
3answers
623 views

Separating dynamic and static content on high traffic website

I am trying to increase capacity for my website, which is growing beyond what my current web server is able to handle. The site hosts on a dedicated web server (Litespeed), and a dedicated database ...
0
votes
3answers
493 views

nginx hackery : change image file every X request

Let me describe what I am trying to do first. I have a bunch of pictures in a directory called /images/*.(jpg|gif|png|blah blah|) Now say these images are embedded in an html page and I dont really ...
-1
votes
1answer
345 views

Create multiple subdomains for the same directory [duplicate]

Possible Duplicate: Apache redirect to another domain all URLs, except for ones starting with substring I would like to optimize image loading for my website using multiple subdomains for ...
1
vote
0answers
113 views

mixing apache2/another web server, virtual apps and static content

I am unable to configure apache2 frontend proxy to other servers and also serve apache2 content. My intent is to have apache2 serve some static content and some dynamic apps, both with domain names ...
2
votes
3answers
815 views

Serve millions of concurrent connections and static files?

I am just curious about the server configurations to serve just static files from one server. Is it possible to build a server that just for static files and serve millions of concurrent connections. ...
0
votes
1answer
305 views

NGINX config for many small files

I'm trying to configure an NGINX server that's sole purpose is to serve as many 10k JPEGs as it can. I have 16 GB RAM and 2 Intel Xeon E5506 processors, running CentOS. I'm looking to configure this ...
0
votes
2answers
2k views

serving static content with nginx

I'm currently struggling to get the static content served with nginx for my application. I'll give a bit of background information: Server : Ubuntu 10.4 lucide Ruby : 1.8 application : ...
36
votes
3answers
22k views

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 ...