File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -1186,16 +1186,11 @@ sub feature_get_web_php_mode
11861186my ($loc ) = grep { $_ -> {' words' }-> [0] eq ' ~' &&
11871187 ($_ -> {' words' }-> [1] eq ' \.php$' ||
11881188 $_ -> {' words' }-> [1] eq ' \.php(/|$)' ) } @locs ;
1189- my $fpmsock = &virtual_server::get_php_fpm_socket_file($d , 1);
1190- my $fpmport = $d -> {' php_fpm_port' };
11911189if ($loc ) {
11921190 my ($pass ) = &find(" fastcgi_pass" , $loc );
11931191 if ($pass && $pass -> {' words' }-> [0] =~ / ^(localhost|127\. 0\. 0\. 1|unix):(.*)$ / ) {
1194- if ($1 eq " unix" && $2 eq $fpmsock ) {
1195- return ' fpm' ;
1196- }
1197- elsif (($1 eq " localhost" || $1 eq " 127.0.0.1" ) &&
1198- $fpmport && $2 eq $fpmport ) {
1192+ if (($1 eq " localhost" || $1 eq " 127.0.0.1" || $1 eq " unix" ) &&
1193+ $2 && $2 !~ / \. sock\/ socket/ ) {
11991194 return ' fpm' ;
12001195 }
12011196 else {
You can’t perform that action at this time.
0 commit comments