Skip to content

Commit

Permalink
backing up configs that work
Browse files Browse the repository at this point in the history
  • Loading branch information
Plone Conference Buildbots committed Jun 13, 2011
1 parent 4fbb974 commit dc3d60f
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
31 changes: 31 additions & 0 deletions configs/haproxy.cfg
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

24 changes: 24 additions & 0 deletions configs/ploneconf-apache-config
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>

0 comments on commit dc3d60f

Please sign in to comment.