aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2012-01-14 22:20:56 +0000
committerMichael Scherer <misc@mageia.org>2012-01-14 22:20:56 +0000
commit0d1c3cc6d039abbcdb94bcd9b97b758e493db9de (patch)
treec38b082837b409fe096c108c0021f505aaee7b7f
parentb1963409bc0aff406437a83a378a4c9e83fe6220 (diff)
downloadpuppet-0d1c3cc6d039abbcdb94bcd9b97b758e493db9de.tar
puppet-0d1c3cc6d039abbcdb94bcd9b97b758e493db9de.tar.gz
puppet-0d1c3cc6d039abbcdb94bcd9b97b758e493db9de.tar.bz2
puppet-0d1c3cc6d039abbcdb94bcd9b97b758e493db9de.tar.xz
puppet-0d1c3cc6d039abbcdb94bcd9b97b758e493db9de.zip
use a reverse proxy to access to mailman on zarb.org server ( finally found how to cleanly do it with ProxyPreserveHost )
-rw-r--r--deployment/websites/templates/vhost_www.conf21
1 files changed, 21 insertions, 0 deletions
diff --git a/deployment/websites/templates/vhost_www.conf b/deployment/websites/templates/vhost_www.conf
index 6f9ce779..5773670d 100644
--- a/deployment/websites/templates/vhost_www.conf
+++ b/deployment/websites/templates/vhost_www.conf
@@ -1,3 +1,24 @@
Redirect /wiki https://wiki.mageia.org/#
+ProxyRequests Off
+
+<Proxy *>
+ Order deny,allow
+ Allow from all
+</Proxy>
+
+<%- if use_ssl then
+ protocol = 'https://'
+ else
+ protocol = 'http://'
+ end
+-%>
+<%- if use_ssl -%>
+SSLProxyEngine On
+<%- end -%>
+
+ProxyPreserveHost On
+ProxyPass /mailman/ <%= protocol %>://ryu.zarb.org/mailman/
+ProxyPassReverse /mailman/ <%= protocol %>://ryu.zarb.org/mailman/
+
php_value short_open_tag false