8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9819113 commit 71a24aaCopy full SHA for 71a24aa
cookbook/configuration/web_server_configuration.rst
@@ -132,8 +132,14 @@ directive to pass requests for PHP files to PHP FPM:
132
#
133
# SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
134
135
- ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/project/web/$1
136
-
+ # For Apache 2.4.9 or upper
+ # 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
+
143
DocumentRoot /var/www/project/web
144
<Directory /var/www/project/web>
145
# enable the .htaccess rewrites
0 commit comments