Ubuntu 18.04 - Using the instructions - Not displaying web interface #2502

Closed
opened 2025-12-29 18:19:25 +01:00 by adam · 0 comments
Owner

Originally created by @GuyManDude on GitHub (Apr 6, 2019).

I installed onto Ubuntu 18.04 using the provided instructions and i had no problem getting it working to the point where the web interface is tested using the python test server. My problems are with getting it to run under Apache.

I used the /opt/netbox installation folder as in the instructions and my virtualhost config is below. When I type 10.1.1.93 into by browser I get the Apache default page. Should the URL be x.x.x.x/?

Thank you.

<VirtualHost *:80>
ProxyPreserveHost On

ServerName 10.1.1.93

Alias /static /opt/netbox/netbox/static

# Needed to allow token-based API authentication
WSGIPassAuthorization on

<Directory /opt/netbox/netbox/static>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Require all granted
</Directory>

<Location /static>
    ProxyPass !
</Location>

RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
ProxyPass / http://127.0.0.1:8001/
ProxyPassReverse / http://127.0.0.1:8001/
Originally created by @GuyManDude on GitHub (Apr 6, 2019). I installed onto Ubuntu 18.04 using the provided instructions and i had no problem getting it working to the point where the web interface is tested using the python test server. My problems are with getting it to run under Apache. I used the /opt/netbox installation folder as in the instructions and my virtualhost config is below. When I type 10.1.1.93 into by browser I get the Apache default page. Should the URL be x.x.x.x/? Thank you. <VirtualHost *:80> ProxyPreserveHost On ServerName 10.1.1.93 Alias /static /opt/netbox/netbox/static # Needed to allow token-based API authentication WSGIPassAuthorization on <Directory /opt/netbox/netbox/static> Options Indexes FollowSymLinks MultiViews AllowOverride None Require all granted </Directory> <Location /static> ProxyPass ! </Location> RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME} ProxyPass / http://127.0.0.1:8001/ ProxyPassReverse / http://127.0.0.1:8001/ </VirtualHost>
adam closed this issue 2025-12-29 18:19:25 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2502