|
@@ -9,7 +9,7 @@ events {
|
|
|
use epoll;
|
|
|
}
|
|
|
|
|
|
-http
|
|
|
+http
|
|
|
{
|
|
|
include mime.types;
|
|
|
default_type application/octet-stream;
|
|
@@ -27,20 +27,20 @@ http
|
|
|
'$status $body_bytes_sent "$http_referer" '
|
|
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
|
|
|
|
|
- server
|
|
|
+ server
|
|
|
{
|
|
|
listen 80;
|
|
|
set $folder_name /var/www/html;
|
|
|
- server_name www.xyzshops.cn order.xyzshops.cn;
|
|
|
+ server_name youjun.xyzshops.cn;
|
|
|
root $folder_name;
|
|
|
- index index.html index.php;
|
|
|
+ index index.html index.php;
|
|
|
|
|
|
proxy_connect_timeout 500s;
|
|
|
proxy_read_timeout 500s;
|
|
|
proxy_send_timeout 500s;
|
|
|
|
|
|
fastcgi_connect_timeout 75;
|
|
|
- fastcgi_read_timeout 600;
|
|
|
+ fastcgi_read_timeout 600;
|
|
|
fastcgi_send_timeout 600;
|
|
|
fastcgi_buffer_size 32K;
|
|
|
fastcgi_buffers 32 32K;
|
|
@@ -49,7 +49,7 @@ http
|
|
|
real_ip_header X-Forwarded-For;
|
|
|
|
|
|
charset utf-8;
|
|
|
-
|
|
|
+
|
|
|
location /logs {
|
|
|
deny all;
|
|
|
return 403;
|
|
@@ -62,30 +62,12 @@ http
|
|
|
location / {
|
|
|
index index.html index.htm index.php;
|
|
|
}
|
|
|
-
|
|
|
- location /mshop {
|
|
|
- root $folder_name;
|
|
|
- autoindex on;
|
|
|
- index index.html index.htm index.php;
|
|
|
- try_files $uri $uri/ /mshop/index.html;
|
|
|
- }
|
|
|
-
|
|
|
- location /plot {
|
|
|
- root $folder_name;
|
|
|
- proxy_pass http://172.26.105.126:5000;
|
|
|
- proxy_redirect off;
|
|
|
-
|
|
|
- proxy_set_header Host $host;
|
|
|
- proxy_set_header X-Real-IP $remote_addr;
|
|
|
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
- proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
- }
|
|
|
|
|
|
- location /merchant {
|
|
|
+ location /mshop {
|
|
|
root $folder_name;
|
|
|
autoindex on;
|
|
|
index index.html index.htm index.php;
|
|
|
- try_files $uri $uri/ /merchant/index.html;
|
|
|
+ try_files $uri $uri/ /mshop/index.html;
|
|
|
}
|
|
|
|
|
|
location ~ /mobile/[/\w]+\.php$ {
|
|
@@ -101,15 +83,6 @@ http
|
|
|
try_files $uri $uri/ /mobile/index.html;
|
|
|
}
|
|
|
|
|
|
- location ~ /racc/[/\w]+\.php$ {
|
|
|
- root $folder_name;
|
|
|
- fastcgi_pass docker.hostip:9101;
|
|
|
- fastcgi_index index.php;
|
|
|
- fastcgi_param SCRIPT_FILENAME $folder_name$fastcgi_script_name;
|
|
|
- fastcgi_param SIGN $http_sign;
|
|
|
- include fastcgi_params;
|
|
|
- }
|
|
|
-
|
|
|
location ~ /mchsrv/[/\w]+\.php$ {
|
|
|
root $folder_name;
|
|
|
fastcgi_pass 172.26.80.6:9102;
|
|
@@ -122,7 +95,7 @@ http
|
|
|
location ~ \.php$ {
|
|
|
add_header Cache-Control no-store;
|
|
|
root $folder_name;
|
|
|
- fastcgi_pass 172.26.80.6:9000;
|
|
|
+ fastcgi_pass docker.hostip:9000;
|
|
|
fastcgi_index index.php;
|
|
|
fastcgi_param SCRIPT_FILENAME $folder_name$fastcgi_script_name;
|
|
|
fastcgi_buffer_size 1024K;
|