浏览代码

added haproxy.cfg

tags/release-00
gashapwn 3 年前
父节点
当前提交
0c28ecedcf
共有 1 个文件被更改,包括 53 次插入0 次删除
  1. +53
    -0
      perl-script/conf/haproxy.cfg

+ 53
- 0
perl-script/conf/haproxy.cfg 查看文件

@@ -0,0 +1,53 @@
global
log 127.0.0.1 local0 debug
maxconn 1024
chroot /var/haproxy
uid 604
gid 604
daemon
pidfile /var/run/haproxy.pid

defaults
log global
mode http
option httplog
option dontlognull
option redispatch
retries 3
maxconn 2000

#listen haproxy_stats
# bind *:25010
# mode http
# log global
#
# maxconn 10
#
# clitimeout 100s
# srvtimeout 100s
# contimeout 100s
# timeout queue 100s
#
# stats enable
# stats hide-version
# stats refresh 30s
# stats show-node
# stats auth metric:blacksheepcomeon
# stats uri /haproxy?stats

frontend haproxy
bind *:80
acl tilde_uri path_beg /~

use_backend userdir_httpd if tilde_uri

default_backend req_python

backend req_python
option forwardfor
server py 127.0.0.1:5000 check

backend userdir_httpd
option forwardfor
server apache2 127.0.0.1:5001 check


正在加载...
取消
保存