Questions tagged [static-files]
74 questions
2
votes
1 answer
Fresh Ubuntu 16.04 Nginx Configuration is Serving Old Static Files
I have a very basic landing page for a domain of mine. For the last couple days I have been fighting a very peculiar issue.
For example, the directory contains:
vanilla>
./files/
./index.html
./main_style.css
files>
…
![](../../users/profiles/291184.webp)
Purlek
- 29
- 5
2
votes
1 answer
Apache HTTPD: URL resolution for a virtual host with proxies and directory alias
Here's what my environment looks like:
REST api (django), running over WSGI (mod_wsgi) on port http://server:8107/api
static files for the API site (i have some admin pages), in a directory, say /opt/wsgi/staticfiles/subdomain
Web application…
![](../../users/profiles/125372.webp)
Olivier H
- 245
- 1
- 3
- 8
2
votes
1 answer
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 will download, just this one type is being…
![](../../users/profiles/193666.webp)
Jhorra
- 123
- 3
2
votes
1 answer
Nginx redirect all request that does not match a file to a php file
I'm trying to get all request to:
http://example.com/downloads/*
redirect to http://example.com/downloads/index.php except if the requested file exist in /downloads/
ex:
http://example.com/downloads =>…
![](../../users/profiles/196017.webp)
Cyrbil
- 123
- 1
- 7
2
votes
1 answer
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 glasshfish appserver including the ones for static…
![](../../users/profiles/83802.webp)
user193116
- 163
- 1
- 7
2
votes
1 answer
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, so I don't even know how to save/edit/delete user…
![](../../users/profiles/38484.webp)
user38484
- 313
- 2
- 5
- 10
1
vote
0 answers
Mixing private and public static files in AWS is either fully private or fully public
I am trying to move my static assets to AWS. I am following many blog posts but most of all this one: https://simpleisbetterthancomplex.com/tutorial/2017/08/01/how-to-setup-amazon-s3-in-a-django-project.html
Now I can either make it work so that it…
![](../../users/profiles/540609.webp)
Micromegas
- 231
- 1
- 10
1
vote
1 answer
img 404 using Nginx, Docker, Django, Digital Ocean
For some reason, my CSS, JS, and Font-Awesome static assets are recognized and serving properly, but my img static files are showing 404 errors in the Nginx Docker container logs.
Everything works fine when I build these containers locally, but as…
![](../../users/profiles/438532.webp)
Taylor Parrish
- 11
- 2
1
vote
1 answer
Nginx: / for both static content and proxied application
http://example.com: my site
http://example.net: the proxied backend
I'm trying to setup an nginx server block as both a static content server and a reverse proxy. Nginx should first check for static files and then redirect to the proxied…
![](../../users/profiles/42424.webp)
Charles
- 263
- 1
- 3
- 10
1
vote
1 answer
How to serve a huge static and pregenerated website?
My current web project has the following characteristics:
A website which is basically a read-only archive of information. There are no interactive actions a visitor could do.
All pages (currently around 15k) of the website are pre-generated HTML…
![](../../users/profiles/228506.webp)
JFo
- 135
- 6
1
vote
1 answer
Nginx fails to direct to https server block on same domain
I'm attempting to serve a static file using nginx over https.
Setup
DNS correctly points subdomain to AWS IP:
subdomain1.website.com -> correct IP
Working config
I've found the following simple server setup to be working completely correctly.…
![](../../users/profiles/384332.webp)
Jacob Young
- 21
- 3
1
vote
3 answers
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 for this single purpose?
(Machine.config changes?…
![](../../users/profiles/15059.webp)
rmontgomery429
- 749
- 1
- 8
- 8
1
vote
3 answers
Nginx FastCGI not caching static files?
I configure fastCGI to cache with NginX. It work with .php file, but i can't cache static file like .jpg, .mp4...
My infomation when check with cURL:
curl -I http://192.168.1.223/music.php
HTTP/1.1 200 OK
Server: nginx
Date: Mon, 07 Dec 2015…
![](../../users/profiles/326255.webp)
dvthanh
- 11
- 3
1
vote
1 answer
Nginx serving static files via Unicorn upstream (tcp)
I'm trying to create a rails app with load balancer. App is running but I don't know how to serve static files. All examples assume that nginx and unicorn running on the same machine.
Here is the minimal configs:
Machine A: Nginx
Machine B: Unicorn…
![](../../users/profiles/321351.webp)
mef_
- 113
- 3
1
vote
2 answers
Building a high performance file server using SSD as cache
I want to build a file server that serves ~50 TB of content to its users. To maximize the server's throughput, I'm going to utilize the follow scenario.
50 TB of HDD storage. All of the static files are residing here.
6 TB of SSD storage. This will…
![](../../users/profiles/44635.webp)
Sadjad
- 113
- 1
- 4