# HG changeset patch # User Arthur Lutz # Date 1307623052 -7200 # Node ID 0fa5dee25b7d91040ebbe3175e3603bf8aca145f # Parent 23ae090fc6a4a28f5cc9416c865aedca443f6f19 [doc] Small addition to apache configuration in book diff -r 23ae090fc6a4 -r 0fa5dee25b7d doc/book/en/admin/instance-config.rst --- a/doc/book/en/admin/instance-config.rst Thu Jun 09 12:31:28 2011 +0200 +++ b/doc/book/en/admin/instance-config.rst Thu Jun 09 14:37:32 2011 +0200 @@ -43,18 +43,31 @@ use apache (for example) for redirection and the variable `main.https-url` of configuration file. +For this to work you have to activate the following apache modules : + +* rewrite +* proxy +* http_proxy + +The command on Debian based systems for that is :: + + a2enmod rewrite http_proxy proxy + /etc/init.d/apache2 restart + :Example: For an apache redirection of a site accessible via `http://localhost/demo` and `https://localhost/demo` and actually running on port 8080, it takes to the http::: + RewriteEngine On RewriteCond %{REQUEST_URI} ^/demo RewriteRule ^/demo$ /demo/ RewriteRule ^/demo/(.*) http://127.0.0.1:8080/$1 [L,P] and for the https::: + RewriteEngine On RewriteCond %{REQUEST_URI} ^/ demo RewriteRule ^/demo$/demo/ RewriteRule ^/demo/(.*) http://127.0.0.1:8080/https/$1 [L,P]