Welcome! Log In Create A New Profile

Advanced

Reverse proxy 404 error help!

Soon Hyouk Lee
August 29, 2019 10:56PM
Trying to get Unifi (ubiquiti networks) video controller up via nginx reverse proxy, but I keep getting 404 errors by my app. Seems it is trying to pull css from the wrong location and getting 404 errors. when I request [hostname]/unifi/ it goes to a white page but doesn't give me an explicit error, so the location block is working to pull up a base static page, but clearly not anything else is functioning.

Error log shows that the css files needed are being referenced using the root directory defined in the '/' location block rather than the root specified in the '/unifi/' location block. Looking at network developer tools in chrome / firefox shows 404 errors for css pages being called by the app.

Can anyone provide some much needed assistance? I've been at this for hours, changing various things in the config without any progress! Not sure if it's just syntax associated with the rewrite or if it's something more fundamental. If I change the root to the app's appropriate directory at the '/' location block then some of the 404 errors are eliminated. I will also need to figure how to get websocket to work for this once I can get the login page to load.



nginx config below:

https://pastebin.com/0KihFgEP

error log from nginx below:

https://pastebin.com/aWBmLSX3
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Reverse proxy 404 error help!

Soon Hyouk Lee August 29, 2019 10:56PM

Re: Reverse proxy 404 error help!

Francis Daly August 30, 2019 03:56PM

Re: Reverse proxy 404 error help!

Soon Hyouk Lee September 02, 2019 10:24PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 78
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready