#t/TEST -proxy ProxyRequests On # Suppress the error_log spam every 100ms watchdog cycle at trace5 LogLevel proxy_hcheck:trace4 DocumentRoot @SERVERROOT@/htdocs DocumentRoot @SERVERROOT@/htdocs BalancerMember http://@SERVERNAME@:@PROXY_HTTP_BAL1_PORT@ loadfactor=1 BalancerMember http://@SERVERNAME@:@PROXY_HTTP_BAL2_PORT@ loadfactor=1 BalancerMember http://@SERVERNAME@:@PROXY_HTTP_BAL1_PORT@ loadfactor=1 BalancerMember http://@SERVERNAME@:@PROXY_HTTP_BAL2_PORT@ loadfactor=1 BalancerMember http://@SERVERNAME@:@PROXY_HTTP_BAL1_PORT@ loadfactor=1 BalancerMember http://@SERVERNAME@:@PROXY_HTTP_BAL2_PORT@ loadfactor=1 BalancerMember http://@SERVERNAME@:@PROXY_HTTP_BAL1_PORT@ loadfactor=1 BalancerMember http://@SERVERNAME@:@PROXY_HTTP_BAL2_PORT@ loadfactor=1 ProxySet balancer://foo1 lbmethod=byrequests ProxySet balancer://foo2 lbmethod=bytraffic ProxySet balancer://foo3 lbmethod=bybusyness = 2.3.0> ProxySet balancer://foo4 lbmethod=heartbeat ProxyPass balancer://foo1/ ProxyPass balancer://foo2/ ProxyPass balancer://foo3/ = 2.3.0> # TODO heartbeat needs additional configuration to have it work ProxyPass balancer://foo4/ ## PR 45434 tests BalancerMember http://@SERVERNAME@:@PORT@/modules ProxyPass /pr45434 balancer://pr45434/alias ProxyPassReverse /pr45434 balancer://pr45434/alias # # Test config for FCGI (see t/modules/proxy_fcgi.t) # # XXX we have no way to retrieve the NextAvailablePort from Apache::Test... Define FCGI_PORT @NextAvailablePort@ = 2.4.26> # ProxyFCGISetEnvIf tests SetHandler proxy:fcgi://127.0.0.1:${FCGI_PORT} ProxyFCGISetEnvIf true QUERY_STRING test_value ProxyFCGISetEnvIf true TEST_EMPTY ProxyFCGISetEnvIf false TEST_NOT_SET ProxyFCGISetEnvIf true TEST_DOCROOT "%{DOCUMENT_ROOT}" ProxyFCGISetEnvIf "reqenv('GATEWAY_INTERFACE') =~ m#CGI/(.\..)#" TEST_CGI_VERSION "v$1" ProxyFCGISetEnvIf true !REMOTE_ADDR SetHandler proxy:fcgi://127.0.0.1:${FCGI_PORT} = 2.4.26> ProxyFCGIBackendType GENERIC SetHandler proxy:fcgi://127.0.0.1:${FCGI_PORT} ProxyFCGIBackendType FPM = 2.4.26> ProxyFCGIBackendType GENERIC RewriteEngine On RewriteRule ^.*\.php(/.*)?$ fcgi://127.0.0.1:${FCGI_PORT}@SERVERROOT@/htdocs/modules/proxy/fcgi-generic-rewrite/$0 [L,P] RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^.*$ index.php/$0 [L] SetHandler proxy:fcgi://127.0.0.1:${FCGI_PORT} #AddType application/x-php-fpm .php Action application/x-php-fpm /php/fpm/action virtual SetHandler proxy:fcgi://localhost:9001 AddType application/x-fcgi-action .php Action application/x-fcgi-action /fcgi-action-virtual virtual SetHandler proxy:fcgi://127.0.0.1:${FCGI_PORT} Action application/x-php-fpm /php-fpm-pp/ ProxyPass /php-fpm-pp/ fcgi://localhost:9001/@SERVERROOT@/htdocs/ ProxyPassReverse /php-fpm-pp/ fcgi://localhost:9001/@SERVERROOT@/htdocs/ AllowOverride All