mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 16:40:05 +01:00
fastcgi_split_path_info with location regex fix
This commit is contained in:
@@ -33,12 +33,13 @@ server {
|
||||
|
||||
error_page 404 "VALET_SERVER_PATH";
|
||||
|
||||
location ~ \.php$ {
|
||||
location ~ [^/]\.php(/|$) {
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_pass "unix:VALET_HOME_PATH/valet.sock";
|
||||
fastcgi_index "VALET_SERVER_PATH";
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME "VALET_SERVER_PATH";
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
}
|
||||
|
||||
location ~ /\.ht {
|
||||
@@ -71,12 +72,13 @@ server {
|
||||
|
||||
error_page 404 "VALET_SERVER_PATH";
|
||||
|
||||
location ~ \.php$ {
|
||||
location ~ [^/]\.php(/|$) {
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_pass "unix:VALET_HOME_PATH/valet.sock";
|
||||
fastcgi_index "VALET_SERVER_PATH";
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME "VALET_SERVER_PATH";
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
}
|
||||
|
||||
location ~ /\.ht {
|
||||
|
||||
@@ -22,12 +22,13 @@ server {
|
||||
|
||||
error_page 404 "VALET_SERVER_PATH";
|
||||
|
||||
location ~ \.php$ {
|
||||
location ~ [^/]\.php(/|$) {
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_pass "unix:VALET_HOME_PATH/valet.sock";
|
||||
fastcgi_index "VALET_SERVER_PATH";
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME "VALET_SERVER_PATH";
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
}
|
||||
|
||||
location ~ /\.ht {
|
||||
|
||||
Reference in New Issue
Block a user