[colug-432] Setting up apache2 test server to show php formatted source (ubuntu 10.10)

Scott Webster Wood treii28 at yahoo.com
Fri Apr 22 11:59:35 EDT 2011


I'm not sure what is different (whether it be context or syntax) but someone send me the following to put right under the <VirtueHost *:80> definition (not inside any Directory or Location context) and it works:


        RewriteEngine On
        RewriteLog "/tmp/rewrite.log"
        RewriteLogLevel 9

        RewriteRule ^(.*\.php)s$ $1 [H=application/x-httpd-php-source]


(the two log lines are not necessary if you don't desire verbose logging)


More information about the colug-432 mailing list