parent
47f550cdf5
commit
73b78e1bf9
1 changed files with 19 additions and 3 deletions
|
@ -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
|
||||
```
|
||||
<VirtualHost *:80>
|
||||
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"
|
||||
</VirtualHost>
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue