-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathnginx.conf
31 lines (27 loc) · 857 Bytes
/
nginx.conf
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
server {
listen 28080;
server_name localhost;
location / {
root /webgistest/vue-ui/dist/;
}
# reverse proxy
location /webgisapi {
proxy_pass $http_host:28081/webgisapi;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Product_Type 2;
}
location /geoserver {
proxy_pass $http_host:28085/geoserver;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Product_Type 2;
}
#error_page 404 /404.html;
error_page 404 500 502 503 504 /50x.html;
location = /error.html {
root error;
}
}