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] ERROR DOCUMENTS ON 2.0.48
Date Wed, 19 Nov 2003 18:06:46 GMT

On Wed, 19 Nov 2003, David Gonzalez wrote:
> [Wed Nov 19 12:27:56 2003] [error] [client 127.0.0.1] unable to include potential exec
> "include/top.html" in parsed file /wwwroot/error/HTTP_NOT_FOUND.html.var
> [Wed Nov 19 12:27:56 2003] [error] [client 127.0.0.1] unable to include potential exec
> "include/bottom.html" in parsed file /wwwroot/error/HTTP_NOT_FOUND.html.var
>
>  I  haven't  changed  anything. on the httpd.conf file so i don't know
>  what's wrong?.
>
>  I just put php to proccess html files like
>
>  AddType application/x-httpd-php .html

Yep, that's it.  When IncludesNoExec is set (as it is in the errors
directory), the mime type of the included file must start with text/.

A few ways to fix this:

1. Use AddHandler for your php rather than AddType.  AddType should be
used only for real content types.

2. Restrict your php processing only to directories that really need it.
The error directories do not.

3. Change the IncludesNoExec to just Includes in the <Directory> section
for the errors 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