[Lsb-messages] /var/www/bzr/lsb/devel/puppet-lsb r353: Make sure http: redirects are also there on https: too.

Jeff Licquia licquia at linuxfoundation.org
Tue Oct 16 22:57:12 UTC 2012


------------------------------------------------------------
revno: 353
committer: Jeff Licquia <licquia at linuxfoundation.org>
branch nick: puppet-lsb
timestamp: Tue 2012-10-16 18:57:12 -0400
message:
  Make sure http: redirects are also there on https: too.
modified:
  modules/apachehttpd/files/vhosts.d/lsb1.linux-foundation.org/000-default.conf
-------------- next part --------------
=== modified file 'modules/apachehttpd/files/vhosts.d/lsb1.linux-foundation.org/000-default.conf'
--- a/modules/apachehttpd/files/vhosts.d/lsb1.linux-foundation.org/000-default.conf	2012-08-11 04:23:22 +0000
+++ b/modules/apachehttpd/files/vhosts.d/lsb1.linux-foundation.org/000-default.conf	2012-10-16 22:57:12 +0000
@@ -137,6 +137,25 @@
 
 	RewriteEngine on
 
+    # For now, just redirect most unencrypted stuff to the corporate 
+    # workgroup page.
+    RewriteCond %{REQUEST_URI} !^/dbadmin
+    RewriteCond %{REQUEST_URI} !^/navigator
+    RewriteCond %{REQUEST_URI} !^/lsb-cert
+    RewriteCond %{REQUEST_URI} !^/betaspecs
+    RewriteCond %{REQUEST_URI} !^/snapshotspecs
+    RewriteCond %{REQUEST_URI} !^/freenode.txt
+    RewriteCond %{REQUEST_URI} !^/buildbot
+    RewriteCond %{REQUEST_URI} !^/prdb
+    RewriteCond %{REQUEST_URI} !^/maintenance.html
+    RewriteCond %{REQUEST_URI} !^/spec
+    RewriteCond %{REQUEST_URI} !^/robots.txt
+    RewriteRule ^(.*)$ https://www.linuxfoundation.org/collaborate/workgroups/lsb
+
+    RewriteRule ^/spec https://refspecs.linuxfoundation.org/lsb.shtml [L,R=301]
+
+    RewriteRule ^/lsb-cert(.*)$ https://www.linuxbase.org/lsb-cert$1 [L,R=301]
+
 	Alias /dbadmin /srv/www/modules/dbadmin
 	Alias /navigator /srv/www/modules/dbadmin
 



More information about the lsb-messages mailing list