Reedy has uploaded a new change for review.
https://gerrit.wikimedia.org/r/146278
Change subject: Apache config for Wikibooks using mod_proxy_fcgi
......................................................................
Apache config for Wikibooks using mod_proxy_fcgi
Change-Id: Id4fc4f06c05c6ef21b8ccb5ba3d60ace96aff466
---
M main.conf
1 file changed, 12 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/apache-config
refs/changes/78/146278/1
diff --git a/main.conf b/main.conf
index 3e76a6a..5800007 100644
--- a/main.conf
+++ b/main.conf
@@ -433,6 +433,18 @@
AllowEncodedSlashes On
RewriteEngine On
+
+ <IfDefine HHVM>
+ ProxyPass /wiki
fcgi://127.0.0.1:9000/usr/local/apache/common/docroot/wikibooks.org/w/index.php
+ ProxyPass /w/extensions !
+ ProxyPassMatch ^/w/(.*\.(php|hh))$
fcgi://127.0.0.1:9000/usr/local/apache/common/docroot/wikibooks.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/wikibooks.org/w/index.php
+ RewriteRule ^/$
fcgi://127.0.0.1:9000/usr/local/apache/common/docroot/wikibooks.org/w/index.php
[P]
+ RewriteRule ^/robots\.txt$
fcgi://127.0.0.1:9000/usr/local/apache/common/docroot/wikibooks.org/w/robots.php
[P]
+ RewriteRule ^/favicon\.ico$
fcgi://127.0.0.1:9000/usr/local/apache/common/docroot/wikibooks.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/146278
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id4fc4f06c05c6ef21b8ccb5ba3d60ace96aff466
Gerrit-PatchSet: 1
Gerrit-Project: operations/apache-config
Gerrit-Branch: master
Gerrit-Owner: Reedy <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits