diff options
-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] |