Drop redirects to a host we never created
[mirror/dsa-puppet.git] / modules / roles / templates / apache-www.debian.org.erb
index 4ecbf4e..3442b9f 100644 (file)
@@ -90,7 +90,7 @@
   </Files>
 </Directory>
 
-<VirtualHost <%= vhost_listen %> >
+<Macro common-www-other.d.o>
    ServerName debian.org
    ServerAdmin webmaster@debian.org
 
    ServerAlias www.debian.fi
    ServerAlias debian.fi
 
+   ServerAlias www.debian.nl
+   ServerAlias debian.nl
+
    ServerAlias www.debian.com
    ServerAlias debian.com
 
    DocumentRoot <%= wwwdo_document_root %>/
    ErrorLog /var/log/apache2/www-other.debian.org-error.log
    CustomLog /var/log/apache2/www-other.debian.org-access.log privacy
-   #RewriteLog /var/log/apache2/www-other.debian.org-redirect.log
-   #RewriteLogLevel 1
-
-   RewriteEngine on
-   RewriteRule ^/(.*)$ http://www.debian.org/$1 [R=301,L]
-</VirtualHost>
-
-
+</Macro>
 
 <Macro common-www.d.o>
    ServerName www.debian.org
 </VirtualHost>
 
 
+<VirtualHost <%= vhost_listen %> >
+   Use common-www-other.d.o
+
+   ErrorLog /var/log/apache2/www-other.debian.org-error.log
+   CustomLog /var/log/apache2/www-other.debian.org-access.log privacy
+
+   Redirect permanent / http://www.debian.org/
+</VirtualHost>
 <VirtualHost <%= vhost_listen_443 %> >
-   ServerName debian.org
-   ServerAdmin webmaster@debian.org
+   Use common-www-other.d.o
 
    CustomLog /var/log/apache2/www-other-access.log privacyssl
    ErrorLog /var/log/apache2/www-other-error.log
 
    Redirect permanent / https://www.debian.org/
 
-
    Use common-debian-service-ssl www.debian.org
    Use common-ssl-HSTS
 </VirtualHost>