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

Scott Merrill skippy at skippy.net
Fri Apr 22 11:59:51 EDT 2011


The error suggests that the rewrite pattern isn't matching, which
prevents any further processing from succeeding.

Do you have a RewriteLog defined? If so, what's in it? If not, try
enabling it and then look inside.

On Fri, Apr 22, 2011 at 11:51 AM, Scott Webster Wood <treii28 at yahoo.com> wrote:
> I tried it under the <Directory /var/www/> and still getting:
>
> [Fri Apr 22 11:50:04 2011] [error] [client 127.0.1.1] script '/var/www/query.phps' not found or unable to stat
>
> --- On Fri, 4/22/11, Scott Merrill <skippy at skippy.net> wrote:
>> From: Scott Merrill <skippy at skippy.net>
>> Subject: Re: [colug-432] Setting up apache2 test server to show php formatted source (ubuntu 10.10)
>> Scott Webster Wood <treii28 at yahoo.com>
>> wrote:
>> > #  RewriteEngine On
>> > #  RewriteRule (.+\.php)s$ $1
>> [H=application/x-httpd-php-source]
>> > #  RewriteRule ^(.+\.php)s$ $1
>> [T=application/x-httpd-php-source]
>>
>> Try this: [T=application/x-httpd-php-source,PT]
>
>
> _______________________________________________
> colug-432 mailing list
> colug-432 at colug.net
> http://lists.colug.net/mailman/listinfo/colug-432
>



More information about the colug-432 mailing list