The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
14 views

IIS appends /web.config at the end of static files

I am trying to debug a 401 error in IIS that happens when serving static files to an anonymous user. Let's say I'm trying to access https://example.com/sso.css. That file physically resides on ...
1
vote
0answers
16 views

Site farm server with multiple users - best aproach

I am buliding kind a hosting server for static sites, and i am wondering is it better and for what reasons to: 1) use linux users ( i dont need ssh or something advanced function, there is only ...
0
votes
0answers
20 views

Get the most out of VPS and AWS [duplicate]

I have a static website running on shared hosting and doing good (not slow) And having a bandwidth of about 3Gb / month and I'm adding 2 other dynamic website with database and php scripting(I assume ...
0
votes
1answer
48 views

How can I serve a binary file with executable permission via nginx?

I'm serving a Go binary located in /var/www/bin/binary: location ~ (binary) { root /var/www/bin; } However, when I download it with wget http://example.com/binary, I can't run it right away, ...
1
vote
0answers
15 views

Route content using nginx if a specific condition is met

I have 2 LAN networks which are united w/ IPSec tunnel: 10.10.10.1/24 10.10.20.1/24 One of my internal sites is running on 10.10.10.50, which is serving users heavy content, such as 300-400MB ...
0
votes
1answer
27 views

Serve a static page if the backend is down [duplicate]

Apache is acting as a frontend to another (Rails) server that is responsible for handling the requests. How can I make Apache return a static maintenance page when the backend is down (or unreachable ...
0
votes
0answers
13 views

IIS load test always fails no matter what

The scenario is very simple. An android apk file is served by IIS as a static content with application/vnd.android.package-archive as its MIME type. And it's located in the root of the website, for ...
0
votes
2answers
57 views

Apache serving static files within VirtualHost

I have the following VirtualHost configuration. <VirtualHost *:80> ServerName myservername.website <Location /> ProxyPass http://localhost:5000/ ...
8
votes
2answers
783 views

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

S3 Static Website hosting - restricting access from IP Range

Is there way by which can we enforce the access only from a Particular IP Range for S3 Static Website hosted site ?
1
vote
2answers
740 views

Nginx location block - only match actual files

I have the following nginx config: server { listen 8080; root /site_root/web; index index.html; server_name www.mysite.com; location / { try_files $uri @rewriteapp; ...
0
votes
0answers
72 views

Increasingly high connect times for static files with Apache

My client is running a PHP application using Apache 2.4.7 and php-fpm. Apache is configured to use mpm_prefork. I am working on optimising load times. I use FireFox dev tools for profiling, and I ...
2
votes
2answers
507 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
52 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
394 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
65 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
114 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
129 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: ...
1
vote
1answer
468 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
2k 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
4k 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
270 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
70 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
696 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
2k 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 ...
1
vote
1answer
3k 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
220 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
80 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, ...
2
votes
2answers
2k 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
1k 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
147 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
641 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
2answers
4k 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

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
360 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
32 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
271 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
vote
3answers
972 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 ...
5
votes
0answers
508 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
847 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 ...
4
votes
1answer
4k 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
464 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
450 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 ...
1
vote
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
3k 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
463 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
324 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 ...