1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-05 08:30:07 +01:00

fastcgi_split_path_info with location regex fix

This commit is contained in:
Bálint Szekeres
2019-10-17 14:43:35 +02:00
parent 7011629b41
commit 9d7214842b
2 changed files with 6 additions and 3 deletions

View File

@@ -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 {

View File

@@ -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 {