Yurik has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/97115


Change subject: <VirtualHost> for m.wikipedia.org
......................................................................

<VirtualHost> for m.wikipedia.org

All requests to m.wikipedia.org will be sent to the mobilelanding.php
which will determine based on X-CS and other headers the most
appropriate starting page for this user, and redirect to it.

Change-Id: Id9daf97af40df376891da814c7d8a46a9dd2dc5b
---
M wwwportals.conf
1 file changed, 11 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/apache-config 
refs/changes/15/97115/1

diff --git a/wwwportals.conf b/wwwportals.conf
index 7b5d215..724b596 100644
--- a/wwwportals.conf
+++ b/wwwportals.conf
@@ -40,6 +40,17 @@
 </VirtualHost>
 
 <VirtualHost *>
+    ServerName m.wikipedia.org
+    DocumentRoot /usr/local/apache/common/docroot/m.wikipedia.org
+    php_admin_flag engine on
+    RewriteEngine On
+
+    # Everything will be redirected to the appropriate lang.m.wikipedia.org or 
lang.zero.wikipedia.org based on zero settings
+    RewriteRule ^(.*)$ /w/mobilelanding.php [L]
+</VirtualHost>
+
+
+<VirtualHost *>
     ServerName wiktionary.org
     Redirect permanent / http://www.wiktionary.org/
 </VirtualHost>

-- 
To view, visit https://gerrit.wikimedia.org/r/97115
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id9daf97af40df376891da814c7d8a46a9dd2dc5b
Gerrit-PatchSet: 1
Gerrit-Project: operations/apache-config
Gerrit-Branch: master
Gerrit-Owner: Yurik <yu...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to