Reedy has uploaded a new change for review.

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

Change subject: Apache config for Wiktionary using mod_proxy_fcgi
......................................................................

Apache config for Wiktionary using mod_proxy_fcgi

Change-Id: If1fb8447020cb6b5212ae39569c196ef66c7727c
---
M modules/mediawiki/files/apache/sites/main.conf
1 file changed, 12 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/39/147439/1

diff --git a/modules/mediawiki/files/apache/sites/main.conf 
b/modules/mediawiki/files/apache/sites/main.conf
index 3e76a6a..630f71d 100644
--- a/modules/mediawiki/files/apache/sites/main.conf
+++ b/modules/mediawiki/files/apache/sites/main.conf
@@ -137,6 +137,18 @@
     AllowEncodedSlashes On
 
     RewriteEngine On
+
+    <IfDefine HHVM>
+        ProxyPass       /wiki                
fcgi://127.0.0.1:9000/usr/local/apache/common/docroot/wiktionary.org/w/index.php
+        ProxyPass       /w/extensions        !
+        ProxyPassMatch  ^/w/(.*\.(php|hh))$  
fcgi://127.0.0.1:9000/usr/local/apache/common/docroot/wiktionary.org/w/$1
+        ProxyPassMatch  ^/(zh(-(hans|hant|cn|hk|sg|tw))|sr(-(ec|el)) \
+                                             
fcgi://127.0.0.1:9000/usr/local/apache/common/docroot/wiktionary.org/w/index.php
+        RewriteRule     ^/$                  
fcgi://127.0.0.1:9000/usr/local/apache/common/docroot/wiktionary.org/w/index.php
    [P]
+        RewriteRule     ^/robots\.txt$       
fcgi://127.0.0.1:9000/usr/local/apache/common/docroot/wiktionary.org/w/robots.php
   [P]
+        RewriteRule     ^/favicon\.ico$      
fcgi://127.0.0.1:9000/usr/local/apache/common/docroot/wiktionary.org/w/favicon.php
  [P]
+    </IfDefine>
+
     RewriteRule . - [E=RW_PROTO:%{HTTP:X-Forwarded-Proto}]
     RewriteCond %{ENV:RW_PROTO} !=https
     RewriteRule . - [E=RW_PROTO:http]

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: If1fb8447020cb6b5212ae39569c196ef66c7727c
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Reedy <re...@wikimedia.org>

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

Reply via email to