Static files are not being served

448 views
Skip to first unread message

Emil Haugbergsmyr

unread,
Oct 13, 2017, 11:05:33 AM10/13/17
to NetBox
Hello fellow netbox users,

I have a newely installed netbox and it works fine except that i get 404 on all static resources that netbox serves.

Netbox version: v2.2.1


Is there something that I am missing?

Best regards
Emil Haugbergsmyr

Brian Candler

unread,
Oct 13, 2017, 11:42:24 AM10/13/17
to NetBox
Are you running gunicorn behind a reverse proxy?  If so, what software are you running and how have you configured it?

You need to configure the reverse proxy to serve static files correctly.  There are some examples at http://netbox.readthedocs.io/en/latest/installation/web-server/

I use Apache, and it works for me.

Emil Haugbergsmyr

unread,
Oct 13, 2017, 1:22:16 PM10/13/17
to Brian Candler, NetBox
It was a silly mistake on my part. I though that i could run nginx externaly and not on the host itself, after i installed nginx on the nginx host it works like a charm.

Thanks for all your help!

Best regards
Emil

--
You received this message because you are subscribed to a topic in the Google Groups "NetBox" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/netbox-discuss/aOnHNekz2yA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to netbox-discus...@googlegroups.com.
To post to this group, send email to netbox-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netbox-discuss/a28f8860-4635-4cc5-8da1-778bd7219868%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Med Vänliga Hälsningar

Emil Haugbergsmyr
+46 (0) 70 204 4880
Bergsgatan 17 B
832 41 Frösön
Reply all
Reply to author
Forward
0 new messages