Top "Nginx-location" questions

Questions related to nginx location directive should use this tag.

Load CSS and Js files with Nginx

I am trying to serve an Angular deployed site (I have a dist directory with the index.html file) in …

nginx nginx-location
Nginx dynamic location path configuration

Firstly I want to state that I'm rather new to nginx, I basically only know what I've learned over the …

nginx nginx-location
add header to response in nginx location directive

I try to add a response header to only one location path served and have an nginx config looks like …

nginx nginx-location
Nginx location match regex for special characters and encoded url characters

I've been trying so many things today and I am just not winning. I have one file in my site …

regex nginx nginx-location
Serve protected media files with django

I'd like Django to serve some media files (e.g. user-uploaded files) only for logged-in users. Since my site is …

python django python-3.x nginx nginx-location
Nginx fails to create directories on Windows 10 with error: nginx: CreateFile()...failed

I need to find a way/setting to allow Nginx to run a .bat file that will create directories and …

nginx windows-services windows-10 nginx-location
Nginx allow only root and api locations

I have a server configured as a reverse proxy to my server. I want to reject all the requests except …

nginx webserver web-hosting access-control nginx-location
Nginx return under location

I am currently facing a small problem using nginx to redirect to another host. I want to for example redirect …

redirect nginx url-redirection http-redirect nginx-location
How to exclude specific subdomains server_name in nginx configuration

I'm using wildcard in server_name. I want to redirect all subdomains of example.com (configured as *.example.com) to …

nginx nginx-location
Unable to map upstream with folder in nginx server

I want to map our system port 82 with 127.0.0.1:8080/runningSite and I am gettting exception with nginx config. upstream dev { server 127.0.0.1:8080/…

nginx nginx-location winginx