Skip to content
Discussion options

You must be logged in to vote

Netbox builds absolute URLs for images, and it gets the hostname from the incoming request's Host: or X-Forwarded-Host: header.

Maybe you have a proxy in front of Netbox that's still passing the old name. Also check your Apache or Nginx config and compare it against those under /opt/netbox/contrib/. e.g. if you're using Nginx then check your line proxy_set_header X-Forwarded-Host, which should be

proxy_set_header X-Forwarded-Host $http_host;

If you're still not sure where it's coming from, then run tcpdump on the Netbox server:

tcpdump -i lo -nn -s0 -A tcp port 8001

Hit it with any request (e.g. just the home page is fine), and look at all the request headers. See which one still has th…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@gfillol
Comment options

@candlerb
Comment options

@gfillol
Comment options

@candlerb
Comment options

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