胤彬-2018-10-16 17:46:52
vhost設定
server {
Listen 80;
## server_name test.cn ;
## server_name test.cn ;## ;
include "rewrite/thinkphp.conf";
index index.html index.htm index.php;
#location \ {
## index.php # #location \ {##
# # #autoindex on;
#}
位置~ \.php(.*)$ {
位置~ \.php(.*)$ {# :9000;
fastcgi_index index.php;
fastcgi_split_path_info ^(?U).+\.)(/?.+ $ T_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastoo include fastcgi_params;
# }
}
thinkphp.conf
location / {
if (!-e $request_filename) {
# 重寫^(. * )$ /index.php?s=/$1 最後;
中斷;
}
##}