|
@@ -4,9 +4,27 @@
|
4
|
4
|
APP http://39.106.66.72:8082 部署路径:C:\gnhz\shuangkong\distapp
|
5
|
5
|
|
6
|
6
|
Nginx配置文件
|
|
7
|
+ ### 双控JAVA项目
|
|
8
|
+ server {
|
|
9
|
+ listen 18080;
|
|
10
|
+ server_name localhost;
|
|
11
|
+
|
|
12
|
+ # Load configuration files for the default server block.
|
|
13
|
+ include /etc/nginx/default.d/*.conf;
|
|
14
|
+
|
|
15
|
+ # JAVA接口项目
|
|
16
|
+ location / {
|
|
17
|
+ proxy_pass http://127.0.0.1:28080; # Java项目的地址
|
|
18
|
+ proxy_set_header Host $host;
|
|
19
|
+ proxy_set_header X-Real-IP $remote_addr;
|
|
20
|
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
21
|
+ proxy_set_header X-Forwarded-Proto $scheme;
|
|
22
|
+ }
|
|
23
|
+ }
|
|
24
|
+
|
7
|
25
|
# 双控PC页面
|
8
|
26
|
server {
|
9
|
|
- listen 8081;
|
|
27
|
+ listen 18081;
|
10
|
28
|
server_name localhost;
|
11
|
29
|
location / {
|
12
|
30
|
# root /usr/share/nginx/html;
|
|
@@ -25,7 +43,7 @@ Nginx配置文件
|
25
|
43
|
|
26
|
44
|
# 双控APP页面
|
27
|
45
|
server {
|
28
|
|
- listen 8082;
|
|
46
|
+ listen 18082;
|
29
|
47
|
server_name localhost;
|
30
|
48
|
location / {
|
31
|
49
|
# root /usr/share/nginx/html;
|