[D-community-commits] r163 - in trunk/fai-config-dir: files/etc/apache2/sites-available/debian-community.org scripts/WEBSERVER

h01ger-guest at alioth.debian.org h01ger-guest at alioth.debian.org
Sat Sep 22 15:28:47 UTC 2007


Author: h01ger-guest
Date: 2007-09-22 15:28:47 +0000 (Sat, 22 Sep 2007)
New Revision: 163

Modified:
   trunk/fai-config-dir/files/etc/apache2/sites-available/debian-community.org/WEBSERVER
   trunk/fai-config-dir/scripts/WEBSERVER/30-apache
Log:
- enable mod_rewrite in apache
- rewrite planet.(de|en).d-c.org URLs (should be fixed/improved to work for all TLDs)


Modified: trunk/fai-config-dir/files/etc/apache2/sites-available/debian-community.org/WEBSERVER
===================================================================
--- trunk/fai-config-dir/files/etc/apache2/sites-available/debian-community.org/WEBSERVER	2007-09-22 12:56:29 UTC (rev 162)
+++ trunk/fai-config-dir/files/etc/apache2/sites-available/debian-community.org/WEBSERVER	2007-09-22 15:28:47 UTC (rev 163)
@@ -1,6 +1,22 @@
 <VirtualHost bikeshed.debian-community.org>
 	ServerAdmin webmaster at debian-community.org
-	
+
+	# FIXME: this doesnt scale
+
+	RewriteEngine on
+	RewriteCond %{HTTP_HOST}   planet\.debian-community\.org [NC]
+	RewriteRule ^/(.*)         http://wiki.debian-community.org/planets/en/$1 [R,L]
+
+	RewriteCond %{HTTP_HOST}   planet\.en\.debian-community\.org [NC]
+	RewriteRule ^/(.*)         http://wiki.debian-community.org/planets/en/$1 [R,L]
+
+	RewriteCond %{HTTP_HOST}   planet\.de\.debian-community\.org [NC]
+	RewriteRule ^/(.*)         http://wiki.debian-community.org/planets/de/$1 [R,L]
+
+
+	RewriteLog /var/log/apache2/rewrite.log
+	RewriteLogLevel 1
+
 	DocumentRoot /srv/www/
 	<Directory /srv/www/>
 		Options Indexes FollowSymLinks MultiViews +ExecCGI

Modified: trunk/fai-config-dir/scripts/WEBSERVER/30-apache
===================================================================
--- trunk/fai-config-dir/scripts/WEBSERVER/30-apache	2007-09-22 12:56:29 UTC (rev 162)
+++ trunk/fai-config-dir/scripts/WEBSERVER/30-apache	2007-09-22 15:28:47 UTC (rev 163)
@@ -9,4 +9,7 @@
 
 $ROOTCMD ln -sf /etc/apache2/sites-available/debian-community.org $target/etc/apache2/sites-enabled/010-debian-community.org
 
+# extra apache mods
+$ROOTCMD ln -sf /etc/apache2/mods-available/rewrite.load $target/etc/apache2/mods-enabled/rewrite.load
+
 $ROOTCMD /etc/init.d/apache2 restart




More information about the D-community-commits mailing list