File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -132,8 +132,14 @@ directive to pass requests for PHP files to PHP FPM:
132132 #
133133 # SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
134134
135- ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/project/web/$1
136-
135+ # For Apache 2.4.9 or upper
136+ # This avoid problems with ProxyPassMatch and mod_rewrite or mod_autoindex
137+ <FilesMatch \.php$>
138+ SetHandler proxy:fcgi://127.0.0.1:9000
139+ </FilesMatch>
140+ # If you use Apache version below 2.4.9 you must consider update or use this instead
141+ # ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/project/web/$1
142+
137143 DocumentRoot /var/www/project/web
138144 <Directory /var/www/project/web>
139145 # enable the .htaccess rewrites
You can’t perform that action at this time.
0 commit comments