On Mon, Jan 27, 2003 at 10:51:05PM -0500, Steven J. Sobol wrote:

> > When I use 'wget -S http://stevesobol.com:8001/nf.php' it seems
> > fixed now. I get an 404:
> 
> But IE and Netscape don't detect that it is a 404.

But do you still get the double status header? Because I don't. Try
http://www.iris-advies.nl/this/does/not/exist/

> More importantly, Apache doesn't seem to realize it's a 404. I placed an 
> ErrorDocument directive in the virtualhost entry for this website. It's a 
> simple document that says "this is a 404". Pull up nf.php and that doesn't 
> happen.

Apache is completely out of the loop at this point. The translate
handler was given the chance to decide whether or not it could match the
URL. Since that returned success, apache considers that particular
matter closed. What remains is the possibility to send a specific status
code to the client.

> THAT'S the problem. I did have it originally in code-init and it did work 
> there. I moved the code to the ROOT style element because I am using the 
> code as a package which will be used for lots of clients' websites and I 
> didn't want to always have to remember to put the code-init code into the 
> root page.

Doing things like this in the ROOT *can* work, but you cannot have any
style stuff active. There must be no content sent before you set the
status header, or PHP will sent the 200 for you automatically.

Emile

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to