httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
Subject Re[2]: [users@httpd] ERROR DOCUMENTS ON 2.0.48
Date Thu, 20 Nov 2003 14:31:59 GMT

On Thu, 20 Nov 2003, David Gonzalez wrote:
> JS> Yep, that's it.  When IncludesNoExec is set (as it is in the errors
> JS> directory), the mime type of the included file must start with text/.
>
> JS> A few ways to fix this:
>
> JS> 1. Use AddHandler for your php rather than AddType.  AddType should be
> JS> used only for real content types.
>
> JS> 2. Restrict your php processing only to directories that really need it.
> JS> The error directories do not.
>
> JS> 3. Change the IncludesNoExec to just Includes in the <Directory> section
> JS> for the errors directory.
>
> JS> Joshua.
>
> That's great i've already deleted the AddType for .html files and it's
> fixed Thanx.
>
> Though you left me a litle confused with the fact that i should permit
> .php like CGI on specific places.
>
> Would you be so kind and please tell me how could i achieve steps 1, 2
> & 3?.

You don't need to do all of them.  Any one of them will work.

1. Simply replace the AddType with something like
AddHandler php5-script .html

2. Scope the AddType in a <Directory> as in
<Directory /usr/local/apache2/htdocs>
AddType php....
</Directory>

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