That was exactly what I was looking for, thank you. I have these locations defined in my server section: location ~ ^/[^/]*$ { proxy_pass http://myinternalsite.com; } location /subfolder { proxy_pass http://myinternalsite.com; } location / { return 444; } So http://externalsite.com and http://externalsite.com/subfolder both work but everything else fails.by starmonche - Nginx Mailing List - English
I have an nginx serverset up and I'm looking for a way to only reverse proxy the contents of the root folder. I'm using a location regex with a list of the files in root that are allowed and then a second catch-all location that goes nowhere but there must be an easier or cleaner way to do this.by starmonche - Nginx Mailing List - English
![]() |
![]() |
![]() |
![]() |
![]() |