Skip to content

NetBox behind proxy - login page in loop #9591

Answered by candlerb
cingy asked this question in Q&A
Discussion options

You must be logged in to vote

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

    location /netbox/ {
        proxy_pass http://127.0.0.1:8001;

should be

    location /netbox/ {
        proxy_pass http://127.0.0.1:8001/netbox/;

Once that's working, then you can move onto the outer Apache proxy. One thing I note is this:

<Location /netbox>
       ProxyPass        https://10.0.2.10/netbox/
       ProxyPassReverse https://10.0.2.10/netbox/

You may need to strip the trailing slashes, to match the Location:

<Lo…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@cingy
Comment options

@Smiley-k
Comment options

Answer selected by cingy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants