#t/TEST -proxy ProxyRequests On = 2.4.49> # Test the mapping. ProxyPass /mapping http://@SERVERNAME@:@PORT@/servlet mapping=servlet # 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 ProxySet balancer://foo1 lbmethod=byrequests ProxyPass balancer://foo1/ BalancerMember http://@SERVERNAME@:@PROXY_HTTP_BAL1_PORT@ loadfactor=1 BalancerMember http://@SERVERNAME@:@PROXY_HTTP_BAL2_PORT@ loadfactor=1 ProxySet balancer://foo2 lbmethod=bytraffic ProxyPass balancer://foo2/ BalancerMember http://@SERVERNAME@:@PROXY_HTTP_BAL1_PORT@ loadfactor=1 BalancerMember http://@SERVERNAME@:@PROXY_HTTP_BAL2_PORT@ loadfactor=1 ProxySet balancer://foo3 lbmethod=bybusyness ProxyPass balancer://foo3/ BalancerMember http://@SERVERNAME@:@PROXY_HTTP_BAL1_PORT@ loadfactor=1 BalancerMember http://@SERVERNAME@:@PROXY_HTTP_BAL2_PORT@ loadfactor=1 ProxySet balancer://foo4 lbmethod=heartbeat # 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 BalancerMember http://@SERVERNAME@:@NextAvailablePort@ loadfactor=1 retry=1ms BalancerMember http://@SERVERNAME@:@PROXY_HTTP_BAL1_PORT@ loadfactor=1 status=H ProxyPassMatch ^/baltest_echo_post balancer://failover/echo_post ## Test "dynamic balancer ProxySet growth=10 SetHandler balancer-manager Allow from all ProxyPass /dynproxy balancer://dynproxy/ # # 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/ ProxyPass /proxy/wsoc ws://@SERVERNAME@:@PORT@/modules/lua/websockets.lua AllowOverride All