Questions tagged [static-files]

76 questions
2
votes
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…
2
votes
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…
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> …
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…
Olivier H
  • 245
  • 1
  • 3
  • 9
2
votes
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…
Sadjad
  • 123
  • 1
  • 4
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…
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 =>…
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…
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…
user38484
  • 313
  • 2
  • 5
  • 10
2
votes
0 answers

Nginx reverse proxy not loading static files under sub application correctly

I have a server hosting multiple .NET Core applications on different ports, with nginx reverse proxy setup to redirect users to the correct application via URL. The current setup is as followed: Upstream: upstream app1 { server…
Jeff Do
  • 21
  • 2
1
vote
1 answer

s3 static site: Amazon using wrong bucket

I'm setting up a static site, hosted on S3, using this set of directions: https://www.linode.com/docs/platform/object-storage/host-static-site-object-storage/ I've set my bucket up with the name holisticnetworking.net-static. I walked through the…
tjb74
  • 13
  • 3
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…
Micromegas
  • 231
  • 3
  • 12
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…
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.…
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?…