parent
b7fbfc8e32
commit
046b3dfbb2
1 changed files with 11 additions and 9 deletions
|
@ -10,15 +10,17 @@ Blog and be free!
|
||||||
|
|
||||||
**Reverse Proxy for NGINX**
|
**Reverse Proxy for NGINX**
|
||||||
```
|
```
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name yourcoolassdomain.org
|
server_name yourcoolassdomain.com;
|
||||||
|
location / {
|
||||||
location / {
|
proxy_pass https://127.0.0.1:2314;
|
||||||
proxy_set_header X-Forwarded-For $remote_addr;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_pass http://127.0.0.1:2314;
|
proxy_set_header Connection 'upgrade';
|
||||||
}
|
proxy_set_header Host $host;
|
||||||
|
proxy_cache_bypass $http_upgrade;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue