Skip to content

Static Media Failure afer move of netbox location #14757

Answered by candlerb
misch42 asked this question in Help Wanted!
Discussion options

You must be logged in to vote

Netbox version? (EDIT: from the logs I guess it's v3.6.6)

GET /netbox/static/netbox-light.css?v=3.6.6 HTTP/1.1" 404

That's the problem there (404 response), so if you've checked that the file /opt/netbox/netbox/static/netbox-light.css does exist, then clearly it's your Apache config that's at fault. Did you reload/restart Apache after changing the config?

Also, you haven't shown your whole Apache config, so maybe something else is wrong there.

A couple of years ago I used to run Netbox in this way. According to my records, I used

Alias /netbox/static /opt/netbox/netbox/static

<Directory /opt/netbox/netbox/static>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by misch42
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants