Are0h 2020-07-21 21:26:28 +02:00
parent 47f550cdf5
commit 73b78e1bf9

@ -10,11 +10,27 @@ Also it is strongly recommened to set up a ssl certificate to protect yourself i
Yup. That's it. 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
``` ```
<VirtualHost *:80> <VirtualHost *:80>
ServerName yourcoolassdomain.org ServerName yourcoolassdomain.org
ProxyPreserveHost On ProxyPreserveHost On
ProxyPass "/" "https://127.0.0.1:2314/" ProxyPass "/" "http://127.0.0.1:2314/"
ProxyPassReverse "/" "https://127.0.0.1:2314" ProxyPassReverse "/" "http://127.0.0.1:2314"
</VirtualHost> </VirtualHost>
``` ```