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

added X-Forwarded-Proto header to apache config

This commit is contained in:
John Anderson
2018-03-22 10:51:12 -04:00
committed by GitHub
parent 594ef71027
commit 1c5239a4d0

View File

@ -82,6 +82,7 @@ Once Apache is installed, proceed with the following configuration (Be sure to m
ProxyPass ! ProxyPass !
</Location> </Location>
RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
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>
@ -92,6 +93,7 @@ Save the contents of the above example in `/etc/apache2/sites-available/netbox.c
```no-highlight ```no-highlight
# a2enmod proxy # a2enmod proxy
# a2enmod proxy_http # a2enmod proxy_http
# a2enmod headers
# a2ensite netbox # a2ensite netbox
# service apache2 restart # service apache2 restart
``` ```