瀏覽代碼

Merge pull request #1985 from lampwins/docs/apache-header

added X-Forwarded-Proto header to apache config
Jeremy Stretch 8 年之前
父節點
當前提交
6a4d17b8a5
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      docs/installation/web-server.md

+ 2 - 0
docs/installation/web-server.md

@@ -82,6 +82,7 @@ Once Apache is installed, proceed with the following configuration (Be sure to m
         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>
@@ -92,6 +93,7 @@ Save the contents of the above example in `/etc/apache2/sites-available/netbox.c
 ```no-highlight
 # a2enmod proxy
 # a2enmod proxy_http
+# a2enmod headers
 # a2ensite netbox
 # service apache2 restart
 ```