1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #83: Corrected example Apache configuration

This commit is contained in:
Jeremy Stretch
2016-06-28 20:21:49 -04:00
parent 945ca31460
commit 43e030f1db

View File

@ -287,7 +287,7 @@ Restart the nginx service to use the new configuration.
``` ```
## Apache Configuration ## Apache Configuration
If you're feeling adventurous, or you already have Apache installed and can't run a dual-stack on your server, the following configuration should work for Apache: The following configuration should work for Apache. Be sure to modify the `ServerName` appropriately.
``` ```
<VirtualHost *:80> <VirtualHost *:80>
@ -295,30 +295,30 @@ If you're feeling adventurous, or you already have Apache installed and can't ru
ServerName netbox.example.com ServerName netbox.example.com
Alias /static/ /opt/netbox/netbox/static Alias /static /opt/netbox/netbox/static
<Directory /opt/netbox/netbox/static> <Directory /opt/netbox/netbox/static>
Options Indexes FollowSymLinks MultiViews Options Indexes FollowSymLinks MultiViews
AllowOverride None AllowOverride None
Order allow,deny Require all granted
Allow from all
# Uncomment the line below if running Apache 2.4
#Require all granted
</Directory> </Directory>
<Location /static> <Location /static>
ProxyPass ! ProxyPass !
</Location> </Location>
ProxyPass / http://127.0.0.1:8001 ProxyPass / http://127.0.0.1:8001/
ProxyPassReverse / http://127.0.0.1:8001 ProxyPassReverse / http://127.0.0.1:8001/
</VirtualHost> </VirtualHost>
``` ```
Save the contents of the above example in `/etc/apache2/sites-available/netbox.conf` and reload Apache: Save the contents of the above example in `/etc/apache2/sites-available/netbox.conf`, enable the `proxy` and `proxy_http` modules, and reload Apache:
``` ```
# a2ensite netbox; service apache2 restart # a2enmod proxy
# a2enmod proxy_http
# a2ensite netbox
# service apache2 restart
``` ```
## gunicorn Configuration ## gunicorn Configuration