From 4e965e657cec8f4195be4f735a346b85ea18548a Mon Sep 17 00:00:00 2001 From: murtaugh Date: Mon, 2 Nov 2020 17:18:34 +0100 Subject: [PATCH] Update 'html/INSTALLATION_NOTES.md' --- html/INSTALLATION_NOTES.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/html/INSTALLATION_NOTES.md b/html/INSTALLATION_NOTES.md index 1efce59..381c9b0 100644 --- a/html/INSTALLATION_NOTES.md +++ b/html/INSTALLATION_NOTES.md @@ -39,21 +39,20 @@ NB: The 2 turns on the setGID bit meaning: ``` location /lab/mmurtaugh/ { proxy_pass http://localhost:9050/; - # ADDs sandbot - rewrite /(.*) /sandbot/$1 break; - include /etc/nginx/includes/lab.conf; + include /etc/nginx/includes/lab.conf; } ``` -And made a file for common settings: +And made a file for common settings (nb: replace sandbot with correct path): sudo nano /etc/nginx/includes/lab.conf ``` +rewrite /(.*) /sandbot/$1 break; error_page 502 /lab/502.html; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; - proxy_set_header Host $http_host; - proxy_http_version 1.1; +proxy_set_header Host $http_host; +proxy_http_version 1.1; proxy_redirect off; proxy_buffering off; proxy_set_header Upgrade $http_upgrade;