|
@@ -30,10 +30,14 @@ server {
|
|
|
#keepalive_timeout 5;
|
|
#keepalive_timeout 5;
|
|
|
access_log /home/www/yii2_app/webApp/common/nginx_conf/log/ngx_access.log main;
|
|
access_log /home/www/yii2_app/webApp/common/nginx_conf/log/ngx_access.log main;
|
|
|
error_log /home/www/yii2_app/webApp/common/nginx_conf/log/ngx_error.log;
|
|
error_log /home/www/yii2_app/webApp/common/nginx_conf/log/ngx_error.log;
|
|
|
- root /home/www/yii2_app/webApp/frontend/web;
|
|
|
|
|
|
|
+ root /home/www/yii2_app/webApp/frontend/web/;
|
|
|
index index.php index.html index.htm;
|
|
index index.php index.html index.htm;
|
|
|
try_files $uri $uri/ /index.php?$args;
|
|
try_files $uri $uri/ /index.php?$args;
|
|
|
-
|
|
|
|
|
|
|
+ location / {
|
|
|
|
|
+ try_files $uri $uri/ /index.html;
|
|
|
|
|
+ expires 30d;
|
|
|
|
|
+ #rewrite ^(.*)$ /static/maintain.html break;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
location ~ \.php$ {
|
|
location ~ \.php$ {
|
|
|
fastcgi_pass 127.0.0.1:9000;
|
|
fastcgi_pass 127.0.0.1:9000;
|