Static Media Failure afer move of netbox location #14757
-
Hi, I wanted my netbox to run unter /netbox/ location. So I change BASE_PATH in configuration.py to netbox/. I change my httpd.conf to
I re-ran manage.py collectstatic. Still I get:
The file netbox-print.css exists in the static root directory and is readable by the HTTP server. The log looks like "GET /netbox/ HTTP/1.1" 200 105389 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0" Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Netbox version? (EDIT: from the logs I guess it's v3.6.6)
That's the problem there (404 response), so if you've checked that the file 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
and There was a bug with 3.3.6 and 3.3.7 which prevented it working: #10837. I don't think that's the same problem as you're seeing, but I've not tested it with any newer versions either. |
Beta Was this translation helpful? Give feedback.
-
The solution was to put the <Location /netbox/static> after my <Location /netbox/static> with the proxy statements. Thanks for the help. |
Beta Was this translation helpful? Give feedback.
Netbox version? (EDIT: from the logs I guess it's v3.6.6)
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