I can get the ErrorDocument directive to work with a fully qualified
URL, but not with a local URL path.  From reading newsgroup posts I 
it was the result of a lack of proper ServerName, but I tried 
Different combinations of ServerName being populated as:

*:80
hostname.domain.com:80
www.domain.com:80

...with the UseCanonicalName set to "On" and "Off" and so far have not
had any luck.  I'm running RHEL3, with apache 2.0.55 and php 4.4.1.

Oddly enough if I set the local URL to an HTML file: 

ErrorDocument 404 /server_error.html

It will work.  If I set to a PHP file:

ErrorDocument 404 /server_error.php

I get a blank screen.  I have display_errors set to "= On" in my
php.ini file. So any PHP errors in my code should display.  I even
tried overwriting the content of my server_error.php file with plain
HTML (no PHP code that could create an error).  Still no luck.

If I set the ErrorDocument to point to a fully qualified URL, such as: 

ErrorDocument 404 http://www.domain.com/server_error.php

Regardless of whether it's a PHP page with PHP code or not, it works.
However, since I'm using a fully qualified URL (an "external URL") it 
does not create the REDIRECT_ variables I need to capture error
information when generating automated emails to the server
administrator.

I set my httpd.conf error LogLevel to "debug" but all I get is: 

[Fri Aug 18 11:19:41 2006] [error] [client 10.3.0.3] File does not
exist: /var/www/vhosts/www/html/asdf
[Fri Aug 18 11:19:41 2006] [notice] child pid 26825 exit signal
Segmentation fault (11) 

Any assistance you may be able to provide would be deeply appreciated.
I'm running out of ideas.

John Simone
Software Engineer
Centenary College
o: +1 (908) 852-1400 x.2231
m: +1 (973) 255-0106

---------------------------------------------------------------------
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to