Skip to content

Commit

Permalink
php-fpm working!
Browse files Browse the repository at this point in the history
  • Loading branch information
craigcomstock committed Oct 7, 2024
1 parent b3fb010 commit 3cc756e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cfe_internal/enterprise/templates/httpd.conf.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,9 @@ LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
# Need to pass auth headers to fpm
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>
{{/classes.mission_portal_http2_enabled}}
{{^classes.mission_portal_http2_enabled}}
LoadModule php{{{vars.cfe_internal_hub_vars.php_version}}}_module modules/libphp{{{vars.cfe_internal_hub_vars.php_version}}}.so
Expand Down

0 comments on commit 3cc756e

Please sign in to comment.