The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
2answers
90 views

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

bind9 + lighttpd: Accept all requests coming from certain name servers and reply with static page

So, I've this situation: A server (under CentOS) with a lot of domains with around 2 TB of data under them, and I'm migrating it all to another machine with faster I/O. The migration details / ...
1
vote
1answer
57 views

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 ...
1
vote
1answer
30 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
51 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
81 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
141 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 ...
1
vote
1answer
346 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 ...
3
votes
1answer
1k 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
2k 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
189 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
60 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
509 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
1k 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
2k 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
163 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
63 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
824 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
116 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
440 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
113 views

Serving static directory on subdomain with assets

I have a html presentation which I would like to serve on a subdomain on my server. It just consists of some static html files and some assets (the Github is here). I'm trying to write an nginx ...
0
votes
1answer
237 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
2k 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
236 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
526 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
391 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
599 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 ...
3
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
317 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
354 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
2k 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
347 views

How do i mitigate DDOS attacks on static servers? [duplicate]

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
1k 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
278 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
721 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
2k 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
559 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
496 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
706 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
568 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
370 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
119 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
873 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
320 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 ...