Skip to content

Commit

Permalink
http2 php-fpm working!
Browse files Browse the repository at this point in the history
  • Loading branch information
craigcomstock committed Oct 7, 2024
1 parent 40dd779 commit 1d7b99a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deps-packaging/apache/httpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
# need to pass Authorization headers to fpm for API requests
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
ProxyPassMatch ^/api.*$ fcgi://127.0.0.1:9000/var/cfengine/httpd/htdocs/api/dispatch.php
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/cfengine/httpd/htdocs/public/$1
DirectoryIndex /index.php index.php
<FilesMatch \.php$>
SetHandler "proxy:fcgi://127.0.0.1:9000"
</FilesMatch>

<Directory "/var/cfengine/httpd/htdocs/public">

Expand Down

0 comments on commit 1d7b99a

Please sign in to comment.