|
Home > Archive > Web Servers General Talk > January 2004 > Apache: ErrorDocument
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Apache: ErrorDocument
|
|
|
| I have this .htaccess in web root
--------------
ErrorDocument 404 /error404handler.php
--------------
But it not work. (Apache returns error 404) Why?
I try and this (I dont need this but it dont work):
--------------
ErrorDocument 404 "error message 404 - URL not found
--------------
but it dont work too
the only thing which work is
--------------
ErrorDocument 404 http://server.com/error404handler.php
--------------
but I dont want this because in this case I cannot retrieve
(php) $_SERVER['REQUEST_URI']
which is the wrong URL from browser
also work this
--------------
ErrorDocument 404 c:\webroot\error404handler.php
--------------
but I dont want this because in this case the file error404handler.php
cannot run. (download dialog appear!)
| |
|
| > I have this .htaccess in web rootquote:
> --------------
> ErrorDocument 404 /error404handler.php
> --------------
> But it not work. (Apache returns error 404) Why?
I use Mozilla now, and in WinXP (local) work fine (IE still dont work)
BUT, in Linux (Remote) Mozilla dont work and return this
(Error 403 Forbidden?? Why?)
Not Found
The requested URL /this_dont_exist was not found on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an
ErrorDocument to handle the request.
| |
| Klaus Johannes Rusch 2004-01-19, 6:32 am |
| "<- Chameleon ->" wrote:
quote:
> BUT, in Linux (Remote) Mozilla dont work and return this
> (Error 403 Forbidden?? Why?)
>
> Additionally, a 403 Forbidden error was encountered while trying to use an
> ErrorDocument to handle the request.
That indicates that the error handler cannot be executed. I suggest you
disable the ErrorDocument statements and first get the designated error
handler working, i.e. make sure you can access
http://www.example.com/error404handler.php. Once that works put the
ErrorDocument statements back.
Regards
--
Klaus Johannes Rusch
KlausRusch@atmedia.net
http://www.atmedia.net/KlausRusch/
|
|
|
|
|