| 9to5clone@gmail.com 2006-08-18, 1:38 pm |
| I can get the ErrorDocument directive to work with a fully qualified
URL, but not with a local URL path. From reading posts I suspected 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. (Heeeeeeeeeeeeeeeeelp!!!)
John
|