diff options
author | root <root@jones.dk> | 2016-04-28 03:34:49 +0200 |
---|---|---|
committer | root <root@jones.dk> | 2016-04-28 03:34:54 +0200 |
commit | 2214e868589631eb347ff73b2ae11969554bf3cf (patch) | |
tree | 54b97c9b8315775aeb0392b7c986e5df299214a7 | |
parent | e0d512ede02b405252595a998d4ab027bc62c56d (diff) |
Add prayer snippet.
-rw-r--r-- | apache2/conf.d/local-prayer.conf | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/apache2/conf.d/local-prayer.conf b/apache2/conf.d/local-prayer.conf new file mode 100644 index 0000000..4887482 --- /dev/null +++ b/apache2/conf.d/local-prayer.conf @@ -0,0 +1,23 @@ +AddDefaultCharset on +AddDefaultCharset UTF-8 + +# prevent the webserver from beeing used as proxy +<LocationMatch "^[^/]"> + Deny from all +</LocationMatch> + +<Proxy *> + AddDefaultCharset off + Order deny,allow +# Deny from all + Allow from all +</Proxy> + +<ProxyMatch http://127.0.0.2:8008/.*> + Order deny,allow + Allow from all +</ProxyMatch> + +RewriteEngine On +RewriteRule ^/prayer$ /prayer/ [redirect=permanent] +RewriteRule ^/prayer/ http://127.0.0.2:8008/ [P] |