svn: /phpdoc/en/trunk/install/unix/ apache2.xml
| From: | Rich Bowen | Date: | Fri, 02 Oct 2009 20:50:36 +0000 |
| Subject: | svn: /phpdoc/en/trunk/install/unix/ apache2.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-5036@lists.php.net to get a copy of this message | ||
rbowen Fri, 02 Oct 2009 20:50:36 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=289101
Log:
Clear up a slight confusion in the phrasing, and add a rewrite solution
for phps source filter handler. Would be good to split this into
production vs development configuration recommendations.
Changed paths:
U phpdoc/en/trunk/install/unix/apache2.xml
Modified: phpdoc/en/trunk/install/unix/apache2.xml
===================================================================
--- phpdoc/en/trunk/install/unix/apache2.xml 2009-10-02 20:49:17 UTC (rev 289100)
+++ phpdoc/en/trunk/install/unix/apache2.xml 2009-10-02 20:50:36 UTC (rev 289101)
@@ -121,12 +121,19 @@
SetHandler application/x-httpd-php
</FilesMatch>
- And to allow .phps files to be executed as PHP source files, add this:
+ And to allow .phps files to be handled by the php source filter, and
+ displayed as syntax-highlighted source code, use this:
<FilesMatch "\.phps$">
SetHandler application/x-httpd-php-source
</FilesMatch>
+ To allow any arbitrary .php file to be displayed as syntax-highlighted
+ source code, without having to rename or copy it to a .phps file, do this:
+
+ RewriteEngine On
+ RewriteRule (.*\.php)s$ $1 [H=application/x-httpd-php-source]
+
16. Use your normal procedure for starting the Apache server, e.g.:
/usr/local/apache2/bin/apachectl start