|
@@ -9,7 +9,7 @@ events {
|
|
worker_connections 1024;
|
|
worker_connections 1024;
|
|
}
|
|
}
|
|
|
|
|
|
-http
|
|
|
|
|
|
+http
|
|
{
|
|
{
|
|
include mime.types;
|
|
include mime.types;
|
|
default_type application/octet-stream;
|
|
default_type application/octet-stream;
|
|
@@ -25,11 +25,11 @@ http
|
|
'$status $body_bytes_sent "$http_referer" '
|
|
'$status $body_bytes_sent "$http_referer" '
|
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
|
|
|
|
|
- server
|
|
|
|
|
|
+ server
|
|
{
|
|
{
|
|
listen 80;
|
|
listen 80;
|
|
set $folder_name /var/www/html;
|
|
set $folder_name /var/www/html;
|
|
- server_name www.xyzshops.cn;
|
|
|
|
|
|
+ server_name 10.64.81.2;
|
|
root $folder_name;
|
|
root $folder_name;
|
|
index index.html Index.php;
|
|
index index.html Index.php;
|
|
client_max_body_size 100m;
|
|
client_max_body_size 100m;
|
|
@@ -37,16 +37,10 @@ http
|
|
proxy_read_timeout 500s;
|
|
proxy_read_timeout 500s;
|
|
proxy_send_timeout 500s;
|
|
proxy_send_timeout 500s;
|
|
fastcgi_connect_timeout 75;
|
|
fastcgi_connect_timeout 75;
|
|
- fastcgi_read_timeout 600;
|
|
|
|
- fastcgi_send_timeout 600;
|
|
|
|
|
|
+ fastcgi_read_timeout 600;
|
|
|
|
+ fastcgi_send_timeout 600;
|
|
|
|
|
|
charset utf-8;
|
|
charset utf-8;
|
|
-
|
|
|
|
- location /logs {
|
|
|
|
- deny all;
|
|
|
|
- return 403;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
location /data/log {
|
|
location /data/log {
|
|
deny all;
|
|
deny all;
|
|
return 403;
|
|
return 403;
|
|
@@ -54,31 +48,19 @@ http
|
|
location / {
|
|
location / {
|
|
index index.html index.htm Index.php;
|
|
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 ~ /mobile/[/\w]+\.php$ {
|
|
|
|
- root $folder_name;
|
|
|
|
- fastcgi_pass mobilesrv:9100;
|
|
|
|
- fastcgi_index Index.php;
|
|
|
|
- fastcgi_param SCRIPT_FILENAME $folder_name$fastcgi_script_name;
|
|
|
|
- include fastcgi_params;
|
|
|
|
- }
|
|
|
|
|
|
|
|
- location ~ /mobile/[/\w]+\.html$ {
|
|
|
|
- try_files $uri $uri/ /mobile/index.html;
|
|
|
|
|
|
+ if (!-e $request_filename) {
|
|
|
|
+ rewrite ^(.*)$ /Index.php?s=/$1 last;
|
|
}
|
|
}
|
|
|
|
|
|
- location ~ \.php$ {
|
|
|
|
- add_header Cache-Control no-store;
|
|
|
|
|
|
+ location ~ \.php {
|
|
|
|
+ add_header Cache-Control no-store;
|
|
|
|
+ set $folder_name /var/www/html/public;
|
|
root $folder_name;
|
|
root $folder_name;
|
|
- fastcgi_pass fpmsrv:9000;
|
|
|
|
|
|
+ fastcgi_pass accfpm:9000;
|
|
fastcgi_index Index.php;
|
|
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;
|
|
fastcgi_param SCRIPT_FILENAME $folder_name$fastcgi_script_name;
|
|
include fastcgi_params;
|
|
include fastcgi_params;
|
|
}
|
|
}
|