The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
9 views

Static file serving through apache2 [duplicate]

I want to enable static file serving using apache2 by accessing the files in files system. My application is running on Tomcat7, my virtualhost looks like: <VirtualHost *:80> #set server ...
2
votes
1answer
135 views

Serve static content using docker + nginx + php-fpm

I'm trying to configure a php webapp using docker. The idea is to run the app using php-fpm in an standalone container and have another container that will run nginx. The idea for this set up is to ...
0
votes
1answer
116 views

Nginx - serving static files

What am I doing wrong here? This works: location / { alias /var/www/static/; try_files $uri index.html =404; } But this doesn't: location /hello { alias /var/www/static/; ...
1
vote
0answers
76 views

Nginx serve static files for flask app 404

I've tried numerous solutions of other posts, but nothing seems to work for me, I always get a 404 error, when trying to let nginx serve static files of my flask application. Somewhere in between all ...
0
votes
0answers
27 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 D:\...
1
vote
0answers
18 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
21 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
127 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
24 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
36 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
28 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
856 views

Apache serving static files within VirtualHost

I have the following VirtualHost configuration. <VirtualHost *:80> ServerName myservername.website <Location /> ProxyPass http://localhost:5000/ ...
9
votes
2answers
1k 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
525 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
1k 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; ...
2
votes
2answers
737 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
64 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 / ...
2
votes
1answer
563 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
86 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
147 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
148 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.0.0.0/Claw/scripts/main....
1
vote
1answer
509 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
6k 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 http://...
1
vote
1answer
295 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
72 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
750 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 ...
2
votes
1answer
4k 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
240 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
81 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
3k 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
152 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
772 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 Cache-...
1
vote
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
280 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
455 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
33 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
297 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. /gfx/Bird....
1
vote
3answers
1k 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
550 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
975 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 ...
6
votes
1answer
5k 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 1d;...
0
votes
1answer
532 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
498 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
3k views

Nginx static files exclude one or some file extensions

I'm serving up a static site via nginx. location ~* \.(avi|bin|bmp|dmg|doc|docx|dpkg|exe|flv|gif|htm|html|ico|ics|img|jpeg|jpg|m2a|m2v|mov|mp3|mp4|mpeg|mpg|msi|pdf|pkg|png|ppt|pptx|ps|rar|rss|rtf|...
2
votes
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 Cache-Control:...