Skip to content

Bad Request (400) when accessing NetBox via reverse proxy #14967

Discussion options

You must be logged in to vote

Sorry I missed this:

Yes I can see two hosts for "X-Forwarded-Host" and two for "X-Forwarded-For". Altough the two values for "X-Forwarded-Host" are the same so like X-Forwarded-Host: netbox.domain.com, netbox.domain.com.

Ah yes, that's the problem that causes Django to barf.

As a quick fix on the inner Apache (the one on the Netbox server), you could try

RequestHeader unset X-Forwarded-Host

(Also, check if the Host: header in tcpdump shows the original FQDN, or the FQDN of the internal Netbox server. Ideally it would be the former. There may be an Nginx setting to tweak for this)

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@lucakuehne
Comment options

@candlerb
Comment options

Answer selected by lucakuehne
@lucakuehne
Comment options

@lucakuehne
Comment options

@candlerb
Comment options

@lucakuehne
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants