-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Plone Conference Buildbots
committed
Jun 13, 2011
1 parent
4fbb974
commit dc3d60f
Showing
2 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# this config needs haproxy-1.1.28 or haproxy-1.2.1 | ||
|
||
global | ||
log 127.0.0.1 local0 | ||
log 127.0.0.1 local1 notice | ||
#log loghost local0 info | ||
maxconn 4096 | ||
#chroot /usr/share/haproxy | ||
user haproxy | ||
group haproxy | ||
daemon | ||
#debug | ||
#quiet | ||
|
||
defaults | ||
log global | ||
mode http | ||
option httplog | ||
option dontlognull | ||
retries 3 | ||
option redispatch | ||
maxconn 2000 | ||
contimeout 5000 | ||
clitimeout 50000 | ||
srvtimeout 50000 | ||
|
||
listen ploneconf 0.0.0.0:10002 | ||
balance leastconn | ||
server client1 127.0.0.1:10000 check inter 2000 rise 2 fall 5 | ||
server client2 127.0.0.1:10001 check inter 2000 rise 2 fall 5 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so | ||
LoadModule proxy_ftp_module /usr/lib/apache2/modules/mod_proxy_ftp.so | ||
LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so | ||
LoadModule proxy_connect_module /usr/lib/apache2/modules/mod_proxy_connect.so | ||
LoadModule proxy_balancer_module /usr/lib/apache2/modules/mod_proxy_balancer.so | ||
|
||
<VirtualHost *:80> | ||
ServerAdmin [email protected] | ||
ServerAlias www.ploneconf.org | ||
|
||
RewriteEngine On | ||
RewriteRule ^/(.*) \ | ||
http://127.0.0.1:10002/VirtualHostBase/http/%{SERVER_NAME}:80/conf2011/PloneConf/VirtualHostRoot/$1 [L,P] | ||
|
||
ErrorLog ${APACHE_LOG_DIR}/error.log | ||
|
||
# Possible values include: debug, info, notice, warn, error, crit, | ||
# alert, emerg. | ||
LogLevel warn | ||
|
||
CustomLog ${APACHE_LOG_DIR}/access.log combined | ||
|
||
|
||
</VirtualHost> |