You are here: Re: [PHP] 403 not working -- apache 2 / php5 / linux « PHP « IT news, forums, messages
Re: [PHP] 403 not working -- apache 2 / php5 / linux

Posted by Rasmus Lerdorf on 10/03/33 11:05

Jason Morehouse wrote:
> I still don't really get why apache hands parsing off to php when it
> knows it doesn't have read access to the file, but I'll save that for
> another list!

It could check, I suppose, but it doesn't always know that just because
it can't access the file the receiver won't be able to. For example,
mod_suexec can run something to handle the request as a different user
id, so Apache wouldn't have any clue whether or not the destination
handler is able to read the file or not.

Other times Apache hands something off to PHP which may not be treated
as a file at all by PHP. For example, you might have an auto_prepend
script that looks at the filename itself and uses that to do something
without actually trying to access the file.

A quick little Apache module that runs in the filename translation hook
or perhaps the auth hook would solve this particular problem for you.
Shouldn't be more than a 5-liner but it isn't something Apache can do by
default without potentially breaking many things out there.

-Rasmus

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация