From: Fabian Keil <fk@fabiankeil.de>
Date: Sat, 31 Dec 2011 14:52:48 +0000 (+0000)
Subject: Redirect requests for http://config.privoxy.org/.* to http://www.privoxy.org/config/
X-Git-Tag: v_3_0_20~423
X-Git-Url: http://www.privoxy.org/gitweb/@default-cgi@/faq/@default-cgi@toggle?a=commitdiff_plain;h=d80be686f10bcc5507706ab3e93699acd79ed675;p=privoxy.git

Redirect requests for config.privoxy.org/.* to http://privoxy.org/config/

config.privoxy.org used to be a separate server that was
administrated by Andreas, but will be relocated to the SF
webserver after the domain transfer is done.

Note that the things SF calls VHOSTS all point to the
same root directory, so we can't use a dedicated .htaccess
file for config.privoxy.org.
---

diff --git a/doc/webserver/.htaccess b/doc/webserver/.htaccess
index 5bab17f5..62344b4e 100644
--- a/doc/webserver/.htaccess
+++ b/doc/webserver/.htaccess
@@ -11,6 +11,8 @@
 # And redirects all requests to the canonical web server:
 #    http://www.privoxy.org/
 #
+# Requests for: http://config.privoxy.org/.*
+# are redirected to: http://www.privoxy.org/config/
 #
 # Uses Apache's mod_rewrite
 # See http://httpd.apache.org/docs/mod/mod_rewrite.html
@@ -19,6 +21,10 @@
 # Enable mod_rewrite
 RewriteEngine on
 
+# Note that the parentheses seem to be mandatory
+# even if we aren't interested in what they match.
+RewriteCond %{HTTP_HOST}   ^config\.privoxy\.org [NC]
+RewriteRule ^(.*)$         http://www.privoxy.org/config/ [R,L]
 
 RewriteCond %{HTTP_HOST}   !^www\.privoxy\.org\.?$ [NC]
 RewriteCond %{HTTP_HOST}   !^$