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:
132
132
#
133
133
# SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
134
134
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
+
137
143
DocumentRoot /var/www/project/web
138
144
<Directory /var/www/project/web>
139
145
# enable the .htaccess rewrites
You can’t perform that action at this time.
0 commit comments