httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject Re: [users@httpd] ForceType text/plain works for PHP but not for SSI
Date Tue, 03 Jun 2008 00:30:32 GMT
On Mon, Jun 2, 2008 at 8:13 PM, Ali, Saqib <docbook.xml@gmail.com> wrote:
> Hi Joshua,
>
> This is what I have:
>
> SetHandler server-parsed
> AddType text/html .shtml
> AddOutputFilter INCLUDES .shtml
>
>
> And this doesn't seem to help.
>
> saqib
> http://doctrina.wordpress.com/
>
> On Mon, Jun 2, 2008 at 4:53 PM, Joshua Slive <joshua@slive.ca> wrote:
>> Probably because you are using AddType (an old deprecated method still
>> recommended in the php docs) to activate php but AddHandler (the
>> method recommended by Apache) to activate ssi. The handler equivalent
>> is
>> SetHandler default-handler
>> or (assuming that ssi is activated for .shtml files)
>> RemoveHandler .shtml

Oops. Yep, my message was also behind-the-times. mod_include is a
filter, not a handler.

You can use
RemoveOutputFilter .shtml

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message