summaryrefslogtreecommitdiff
path: root/doc/nginx_location
blob: 8b5e3966e2d7b7679581baae45dd86aa4ad7b679 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#nginx location example

#....

#NOTE: "Upgrade", first letter must be large
map $http_upgrade $connection_upgrade {
        default Upgrade;
        ''      close;
}

#......

server {

    #....

    #NOTE: no trailing slash '/' in location
    location /wrdp {

        #address of webrdp listen port/socket should be set here
        proxy_pass http://192.168.0.2:8080;
        
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $connection_upgrade;
    }

    #....

}