Linked Questions
41 questions linked to/from Nginx -- static file serving confusion with root & alias
1 vote
1 answer
4k views
Nginx Directory Listing only for subpath [duplicate]
I am trying to make my subpath as directory listing only in Nginx, however it returns 404. Suppose I have following config for http://file.example.com/test: server { listen 80; ...
0 votes
2 answers
405 views
Django Statics not accessible (Digital Ocean) [duplicate]
I've build a Django site on a Digital Ocean droplet but the static files seem to be inaccessible. Looking around for solutions I've think the problem lies in the server settings (Nginx), but as this ...
15 votes
6 answers
17k views
Nginx configuration for angular i18n application
I built an angular-5 application using i18n that supports both french and english. I then deployed a separate version of the app for each supported language - dist |___ en/ | |__ index....
24 votes
1 answer
32k views
How to setup NGINX to deploy different Single Page Apps (SPA's... i.e static files) depending on location (under same server_name) with subroutes
My goal is to setup two different single page apps (SPA) under the same domain, where we show the SPA corresponding to the location / path requested. I also want to default to one of the two SPA's on /...
20 votes
2 answers
33k views
How to serve a directory of static files at a certain location path with nginx?
I have files at /Users/me/myproject and I want to serve them at http://stuff.dev/something using a simple nginx config. In the /Users/me/myproject folder is something like: index.html scripts/ ...
9 votes
6 answers
15k views
Nginx and Create React App (with React Router) full routes not working
I have been stuck on this for days now and I need the internet's help. I have created a static HTML landing page project for my react application (These two projects are separate), and I wish to serve ...
7 votes
1 answer
8k views
Nginx error 404 when using autoindex
I'm completely new to nginx. I've installed nginx on windows pc. What I want to do is server a list of files in D:\ on localhost:8082/list. If I use the following conf: server { listen ...
3 votes
1 answer
6k views
Django, serving static files with nGinx gives error 404
I can't serve static files through nGinx and I am getting 404 instead. I can see the error (shown in the error.log), I just can't see how to fix it. urls.py urlpatterns += patterns('', ( r'^...
1 vote
2 answers
6k views
Nginx is serving the default content instead of my content
I have a nginx version: nginx/1.10.3 (Ubuntu) running on Ubuntu 16.04.2 LTS. I use nginx to serve static files, bundles generated by webpack, but that's irrelenvant. What I want to achieve is this: ...
2 votes
1 answer
4k views
how to resolve nginx static assets not found error
my application is working fine at location / { include uwsgi_params; uwsgi_pass unix:/tmp/socket_file.sock; } but when i include static assets location location ~* .\(css|js|jpg|jpeg|...
3 votes
1 answer
5k views
How can I set up nginx to solve 404 not found on static file vue?
I using nginx to run my project. So I install nginx to my localhost to testing it My configuration nginx on localhost like this : location / { root html; index index.html index.htm; } If ...
2 votes
2 answers
3k views
Nginx alias still points to and loads from root directory
I have a django backend and react frontend. I want to serve the react on / and use /admin, /api and /auth for Django. Here's what I have in my Nginx. upstream backend { server 127.0.0.1:8000; } ...
1 vote
2 answers
4k views
Multiple React Apps with NGINX
I am trying to host 2 react apps on an NGINX server. My configuration is currently as follows: server { listen 80; server_name www.domain.net; location / { root /var/www/portfolio_site/code/client/...
0 votes
1 answer
4k views
Nginx config for pretty URLs
Previously I was working with Apache server (I had a special .htaccess) for my router, and everything worked as expected: request: test.local/index/action was handled by test.local/index.php. My ....
0 votes
2 answers
896 views
Cannot upload media files in Django production to external folder
I have an issue on my Django production server. When I try to upload images, they always go to the app/media/ folder. However I want them to be uploaded to /mnt/data. In the admin panel, when I upload ...