差别
这里会显示出您选择的修订版和当前版本之间的差别。
后一修订版 | 前一修订版 | ||
servers [2013/10/21 06:55] – 外部编辑 127.0.0.1 | servers [2024/06/12 10:10] (当前版本) – 外部编辑 127.0.0.1 | ||
---|---|---|---|
行 43: | 行 43: | ||
<code conf> | <code conf> | ||
location ~ .*\.php(\/ | location ~ .*\.php(\/ | ||
+ | </ | ||
+ | |||
+ | 然后在location里加上 | ||
+ | <code conf> | ||
+ | set $path_info ""; | ||
+ | set $real_script_name $fastcgi_script_name; | ||
+ | if ($fastcgi_script_name ~ " | ||
+ | set $real_script_name $1; | ||
+ | set $path_info $2; | ||
+ | } | ||
+ | fastcgi_param SCRIPT_FILENAME $document_root$real_script_name; | ||
+ | fastcgi_param SCRIPT_NAME $real_script_name; | ||
+ | fastcgi_param PATH_INFO $path_info; | ||
</ | </ | ||
行 80: | 行 93: | ||
: | : | ||
+ | |||
+ | ==== caddy ==== | ||
+ | <code conf> | ||
+ | yoursite.com { | ||
+ | tls [email protected] | ||
+ | root / | ||
+ | gzip | ||
+ | fastcgi / 127.0.0.1: | ||
+ | rewrite / { | ||
+ | if {path} not_match (/ | ||
+ | to / | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ |