提交 8265a5cd authored 作者: lihonglin's avatar lihonglin

调整docker配置

上级 b1428010
......@@ -3,14 +3,11 @@ server
listen 80;
server_name localhost;
charset utf-8;
root /www/shop/web;
root /www;
index index.php index.html index.htm;
location / {
index index.php index.html;
if (!-e $request_filename) {
rewrite /(.*)$ /index.php?r=$1 last;
}
}
location ~ \.php$ {
......@@ -18,7 +15,7 @@ server
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /www/shop/web$fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME /www$fastcgi_script_name;
include fastcgi_params;
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论