Use proxy_block placeholder in vhost template for FPM load balancing
All checks were successful
Cloud Apache Container / Build-and-Push (74) (push) Successful in 3m59s
Cloud Apache Container / Build-and-Push (80) (push) Successful in 1m27s
Cloud Apache Container / Build-and-Push (81) (push) Successful in 2m18s
Cloud Apache Container / Build-and-Push (82) (push) Successful in 2m4s
Cloud Apache Container / Build-and-Push (83) (push) Successful in 2m15s
Cloud Apache Container / Build-and-Push (84) (push) Successful in 2m28s
Cloud Apache Container / Build-and-Push (85) (push) Successful in 2m17s
Cloud Apache Container / Build-FPM-Images (74) (push) Successful in 1m23s
Cloud Apache Container / Build-FPM-Images (80) (push) Successful in 1m26s
Cloud Apache Container / Build-FPM-Images (81) (push) Successful in 1m22s
Cloud Apache Container / Build-FPM-Images (82) (push) Successful in 2m21s
Cloud Apache Container / Build-FPM-Images (83) (push) Successful in 2m12s
Cloud Apache Container / Build-FPM-Images (84) (push) Successful in 2m16s
Cloud Apache Container / Build-FPM-Images (85) (push) Successful in 2m40s
Cloud Apache Container / Build-Shared-httpd (push) Successful in 27s
All checks were successful
Cloud Apache Container / Build-and-Push (74) (push) Successful in 3m59s
Cloud Apache Container / Build-and-Push (80) (push) Successful in 1m27s
Cloud Apache Container / Build-and-Push (81) (push) Successful in 2m18s
Cloud Apache Container / Build-and-Push (82) (push) Successful in 2m4s
Cloud Apache Container / Build-and-Push (83) (push) Successful in 2m15s
Cloud Apache Container / Build-and-Push (84) (push) Successful in 2m28s
Cloud Apache Container / Build-and-Push (85) (push) Successful in 2m17s
Cloud Apache Container / Build-FPM-Images (74) (push) Successful in 1m23s
Cloud Apache Container / Build-FPM-Images (80) (push) Successful in 1m26s
Cloud Apache Container / Build-FPM-Images (81) (push) Successful in 1m22s
Cloud Apache Container / Build-FPM-Images (82) (push) Successful in 2m21s
Cloud Apache Container / Build-FPM-Images (83) (push) Successful in 2m12s
Cloud Apache Container / Build-FPM-Images (84) (push) Successful in 2m16s
Cloud Apache Container / Build-FPM-Images (85) (push) Successful in 2m40s
Cloud Apache Container / Build-Shared-httpd (push) Successful in 27s
Replaced hardcoded SetHandler + ProxyFCGISetEnvIf directives with a ~~proxy_block~~ placeholder. The shared_httpd_manager generates either a direct SetHandler (single container) or a mod_proxy_balancer config (multiple containers) depending on the site's container count. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -27,17 +27,7 @@
|
|||||||
SSLCertificateFile /etc/pki/tls/certs/localhost.crt
|
SSLCertificateFile /etc/pki/tls/certs/localhost.crt
|
||||||
SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
|
SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
|
||||||
|
|
||||||
<FilesMatch \.php$>
|
~~proxy_block~~
|
||||||
SetHandler "proxy:fcgi://~~fpm_host~~:~~fpm_port~~"
|
|
||||||
</FilesMatch>
|
|
||||||
|
|
||||||
# The shared httpd serves files from /mnt/users/{user}/{domain}/public_html
|
|
||||||
# but the FPM container has them at /home/{user}/public_html.
|
|
||||||
# Override both DOCUMENT_ROOT and SCRIPT_FILENAME so PHP sees the
|
|
||||||
# correct paths (required for plugins like WordFence that use
|
|
||||||
# $_SERVER['DOCUMENT_ROOT'] to locate config files).
|
|
||||||
ProxyFCGISetEnvIf "true" DOCUMENT_ROOT "/home/~~user~~/public_html"
|
|
||||||
ProxyFCGISetEnvIf "true" SCRIPT_FILENAME "/home/~~user~~/public_html%{reqenv:SCRIPT_NAME}"
|
|
||||||
|
|
||||||
DirectoryIndex index.php index.html index.htm
|
DirectoryIndex index.php index.html index.htm
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user