-
Hi,
When I try to access the same without the proxy, just by SSH tunneling, then everything works fine:
My NGINX (running on same node as netbox) configuration (/etc/nginx/conf.d/netbox.conf):
Setting in "/opt/netbox/netbox/netbox/configuration.py" related to this:
Configuration of my Proxy:
Does anyone have an idea why it is getting to this loop and how it can be fixed? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
What happens if you connect directly to the Netbox nginx server, i.e. to https://10.0.2.10/netbox/? Can you get it to work that way? If not, you need to resolve this first (which also takes Apache issues out of the equation). I don't use nginx, but I wonder if
should be
Once that's working, then you can move onto the outer Apache proxy. One thing I note is this:
You may need to strip the trailing slashes, to match the Location:
(I notice double-slashes in your redirects, this should fix that). The next thing is that you are using https between the two proxies, but with a target URL that almost certainly doesn't present a valid certificate - unless you're using your own local CA and are issuing certificates with an IP SAN (are you?) This means you may have to tweak various Apache SSL settings like SSLProxyEngine, SSLProxyCheckPeerName/SSLProxyVerify, SSLProxyCACertificateFile... EDIT: another useful debugging tool is to use tcpdump to look at the plaintext web request/response going to and from gunicorn:
Then you can check the exact path of the incoming GET request, and see if it matches what you expect. |
Beta Was this translation helpful? Give feedback.
What happens if you connect directly to the Netbox nginx server, i.e. to https://10.0.2.10/netbox/? Can you get it to work that way? If not, you need to resolve this first (which also takes Apache issues out of the equation).
I don't use nginx, but I wonder if
should be
Once that's working, then you can move onto the outer Apache proxy. One thing I note is this:
You may need to strip the trailing slashes, to match the Location: