From 73b78e1bf9905a6d25d9e0cf40c8622c4ab47345 Mon Sep 17 00:00:00 2001 From: Are0h Date: Tue, 21 Jul 2020 21:26:28 +0200 Subject: [PATCH] --- 01---Install.md | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/01---Install.md b/01---Install.md index 3bc7787..09da5d3 100644 --- a/01---Install.md +++ b/01---Install.md @@ -10,11 +10,27 @@ Also it is strongly recommened to set up a ssl certificate to protect yourself i Yup. That's it. +Reverse Proxy for NGINX +``` +server { + listen 80; + server_name yourcoolassdomain.org + + location / { + proxy_set_header X-Forwarded-For $remote_addr; + proxy_set_header Host $http_host; + proxy_pass http://127.0.0.1:2314; + } +} +``` + +Reverse Proxy for Apache ``` ServerName yourcoolassdomain.org ProxyPreserveHost On - ProxyPass "/" "https://127.0.0.1:2314/" - ProxyPassReverse "/" "https://127.0.0.1:2314" + ProxyPass "/" "http://127.0.0.1:2314/" + ProxyPassReverse "/" "http://127.0.0.1:2314" -``` \ No newline at end of file +``` +