From 6669709e1e5fc189fdddf6518168234b9a1104d8 Mon Sep 17 00:00:00 2001 From: Alex Conrey Date: Mon, 27 Jun 2016 17:36:52 -0500 Subject: [PATCH] added apache virtualhost instructions --- docs/getting-started.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/docs/getting-started.md b/docs/getting-started.md index 8f2688aef..3084231d9 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -256,6 +256,34 @@ Restart the nginx service to use the new configuration. # service nginx restart * Restarting nginx nginx ``` +## Apache Configuration + +If you're feeling adventurous, or you already have Apache installed and can't run a dual-stack on your server - an Apache configuration has been created: + +``` + + ProxyPreserveHost On + + ServerName netbox.totallycool.tld + + Alias /static/ /opt/netbox/static/static + + + Options Indexes FollowSymLinks MultiViews + AllowOverride None + Order allow,deny + Allow from all + #Require all granted [UNCOMMENT THIS IF RUNNING APACHE 2.4] + + + + ProxyPass ! + + + ProxyPass / http://127.0.0.1:8001; + ProxyPassReverse / http://127.0.0.1:8001; + +``` ## gunicorn Configuration