global
user haproxy
group haproxy
daemon
defaults
mode http
timeout connect 5000
timeout client 50000
timeout server 50000
errorfile 400 /etc/haproxy/errors/400.http
errorfile 403 /etc/haproxy/errors/403.http
errorfile 408 /etc/haproxy/errors/408.http
errorfile 500 /etc/haproxy/errors/500.http
errorfile 502 /etc/haproxy/errors/502.http
errorfile 503 /etc/haproxy/errors/503.http
errorfile 504 /etc/haproxy/errors/504.http
frontend front_server
mode http
bind *:90
use_backend backend_servers if { path_reg -i ^.*\/func_test\/.*$ }
option forwardfor
fcgi-app gliim-fcgi
log-stderr global
docroot /var/lib/gg/func_test/app
path-info ^.+(/func_test)(/.+)$
backend backend_servers
mode http
filter fcgi-app gliim-fcgi
use-fcgi-app gliim-fcgi
server s1 127.0.0.1:2301 proto fcgi
Copied!