Skip to content

Instantly share code, notes, and snippets.

@cturra
Created December 11, 2014 19:24
Show Gist options
  • Save cturra/46d13bea44bc7edca746 to your computer and use it in GitHub Desktop.
Save cturra/46d13bea44bc7edca746 to your computer and use it in GitHub Desktop.
$ svn diff
Index: modules/webapp/files/status/etc-httpd/domains/status.mozilla.org.conf
===================================================================
--- modules/webapp/files/status/etc-httpd/domains/status.mozilla.org.conf (revision 98036)
+++ modules/webapp/files/status/etc-httpd/domains/status.mozilla.org.conf (working copy)
@@ -1,10 +1,19 @@
-<VirtualHost *:80>
+<VirtualHost *:80 *:81>
ServerName status.mozilla.org
- Redirect / https://status.mozilla.org/
+
+ RewriteEngine On
+ RewriteRule ^(.*)$ https://whistlepig.mozilla.org$1 [NC,R=301]
</VirtualHost>
+<VirtualHost *:80>
+ ServerName whistlepig.mozilla.org
+
+ RewriteEngine On
+ RewriteRule / https://whistlepig.mozilla.org [NC,R=301]
+</VirtualHost>
+
<VirtualHost *:81>
- ServerName status.mozilla.org
+ ServerName whistlepig.mozilla.org
DocumentRoot /data/www/status.mozilla.org/WhistlePig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment