showing results for - "nginx digital ocean node app sub domain"
Federica
17 Oct 2020
1server {
2  server_name blog.karlsolgard.net;
3  
4  location / {
5    proxy_set_header X-Real-IP $remote_addr;
6    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
7    proxy_set_header Host $proxy_host;
8    proxy_set_header X-NginX-Proxy true;
9    proxy_pass       http://127.0.0.1:2368;
10    }
11}
12 
13server {
14   server_name karlsolgard.net;
15 
16   location / {
17    proxy_set_header X-Real-IP $remote_addr;
18    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
19    proxy_set_header Host $proxy_host;
20    proxy_set_header X-NginX-Proxy true;
21    proxy_pass         http://127.0.0.1:8080;
22    }  
23}
24