Giuseppe Lavagetto has submitted this change and it was merged.

Change subject: mediawiki: send .phtml files to HHVM as well
......................................................................


mediawiki: send .phtml files to HHVM as well

As noted in T88942 we still have a PHP file that's called "wiki.phtml"
in the mediawiki repository, thus we have to catch cases of people
trying to access that directly and send them to HHVM.

Change-Id: Ia418bc129ad6e5748623128a637ef70435e76c43
Signed-off-by: Giuseppe Lavagetto <[email protected]>
---
M modules/mediawiki/files/apache/configs/hhvm_catchall.conf
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Ori.livneh: Looks good to me, but someone else must approve
  Giuseppe Lavagetto: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/mediawiki/files/apache/configs/hhvm_catchall.conf 
b/modules/mediawiki/files/apache/configs/hhvm_catchall.conf
index 32bc3bf..2a84765 100644
--- a/modules/mediawiki/files/apache/configs/hhvm_catchall.conf
+++ b/modules/mediawiki/files/apache/configs/hhvm_catchall.conf
@@ -1,7 +1,7 @@
 # This file is managed by puppet
 # Execute all PHP (and Hack) files via HHVM.
 <IfDefine HHVM>
-    <FilesMatch "\.(php|hh)$">
+    <FilesMatch "\.(php|hh|phtml)$">
         RewriteRule ^(.*)$ fcgi://127.0.0.1:9000$1 [P]
     </FilesMatch>
 </IfDefine>

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia418bc129ad6e5748623128a637ef70435e76c43
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Giuseppe Lavagetto <[email protected]>
Gerrit-Reviewer: Giuseppe Lavagetto <[email protected]>
Gerrit-Reviewer: Ori.livneh <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to