zhoutao 6 лет назад
Родитель
Сommit
5f927b5702
1 измененных файлов с 17 добавлено и 8 удалено
  1. 17 8
      default.conf

+ 17 - 8
default.conf

@@ -1,11 +1,20 @@
-
 server {
-        listen       8001;
-         server_name www.sgsino.cn;
-             root   /usr/share/nginx/html;
-             index  index.html index.htm;
-             #try_files $uri $uri/ /index.html
-
-
 
+    listen 8001;
+    server_name http://192.168.20.6;
+    access_log /var/log/factory.log main;
+    error_log /var/log/err.log error;
+    location / {
+        root   /usr/share/nginx/html;
+        index  index.html;
+    try_files $uri $uri/ /index.html;
+    }
+    location ^~ /mallj/ {
+       proxy_pass http://192.168.20.16:8085/;
+       proxy_connect_timeout 15s;
+       proxy_send_timeout 15s;
+       proxy_read_timeout 15s;
+       proxy_set_header X-Real-IP $remote_addr;
+       proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
     }
+}