|
@@ -27,21 +27,21 @@ http
|
|
|
|
|
|
server
|
|
|
{
|
|
|
- listen 80;
|
|
|
- set $folder_name /var/www/html;
|
|
|
- server_name www.xyzshops.cn;
|
|
|
+ listen 8080;
|
|
|
+ set $folder_name /var/www/html/public;
|
|
|
+ server_name zngapi.hemadj.com;
|
|
|
root $folder_name;
|
|
|
- index index.html index.php;
|
|
|
+ index index.html index.php;
|
|
|
client_max_body_size 100m;
|
|
|
proxy_connect_timeout 500s;
|
|
|
proxy_read_timeout 500s;
|
|
|
proxy_send_timeout 500s;
|
|
|
fastcgi_connect_timeout 75;
|
|
|
- fastcgi_read_timeout 600;
|
|
|
- fastcgi_send_timeout 600;
|
|
|
+ fastcgi_read_timeout 600;
|
|
|
+ fastcgi_send_timeout 600;
|
|
|
|
|
|
charset utf-8;
|
|
|
-
|
|
|
+
|
|
|
location /logs {
|
|
|
deny all;
|
|
|
return 403;
|
|
@@ -54,33 +54,42 @@ 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;
|
|
|
+ if (!-e $request_filename) {
|
|
|
+ rewrite ^(.*)$ /index.php?s=/$1 last;
|
|
|
}
|
|
|
|
|
|
- location ~ /mobile/[/\w]+\.php$ {
|
|
|
+ location ~ \.php {
|
|
|
+ add_header Cache-Control no-store;
|
|
|
+ set $folder_name /var/www/html/public;
|
|
|
root $folder_name;
|
|
|
- fastcgi_pass tmobilesrv:9100;
|
|
|
+ fastcgi_pass lfpm:9000;
|
|
|
fastcgi_index index.php;
|
|
|
+ fastcgi_split_path_info ^(.+\.php)(.*)$;
|
|
|
+ fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
|
fastcgi_param SCRIPT_FILENAME $folder_name$fastcgi_script_name;
|
|
|
- include fastcgi_params;
|
|
|
+ include fastcgi_params;
|
|
|
}
|
|
|
+ }
|
|
|
|
|
|
- location ~ /mobile/[/\w]+\.html$ {
|
|
|
- try_files $uri $uri/ /mobile/index.html;
|
|
|
- }
|
|
|
+ server
|
|
|
+ {
|
|
|
+ listen 8080;
|
|
|
+ set $folder_name /var/www/html/admin;
|
|
|
+ server_name zngadm.hemadj.com;
|
|
|
+ root $folder_name;
|
|
|
+ index index.html index.php;
|
|
|
+ client_max_body_size 100m;
|
|
|
+ proxy_connect_timeout 500s;
|
|
|
+ proxy_read_timeout 500s;
|
|
|
+ proxy_send_timeout 500s;
|
|
|
+ fastcgi_connect_timeout 75;
|
|
|
+ fastcgi_read_timeout 600;
|
|
|
+ fastcgi_send_timeout 600;
|
|
|
|
|
|
- location ~ \.php$ {
|
|
|
- add_header Cache-Control no-store;
|
|
|
- root $folder_name;
|
|
|
- fastcgi_pass tfpmsrv:9000;
|
|
|
- fastcgi_index index.php;
|
|
|
- fastcgi_param SCRIPT_FILENAME $folder_name$fastcgi_script_name;
|
|
|
- include fastcgi_params;
|
|
|
+ charset utf-8;
|
|
|
+
|
|
|
+ location / {
|
|
|
+ index index.html index.htm index.php;
|
|
|
}
|
|
|
}
|
|
|
}
|