You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Wing Tang <wi...@gmail.com> on 2010/02/15 15:45:21 UTC
[users@httpd] errordocument without htaccess
Hello,
I want to redirect a http status code 404 to a custom page. I have
configured within an virtual host the following:
ErrorDocument 404 /custom_404.html
In the access.log I can see the 404 but the custom error page actually never
shows up.
I havent used the .htaccess file.
Anyone any ideas where I might have gone wrong?
Thanks in advance.
Wing
Re: [users@httpd] errordocument without htaccess
Posted by Wing Tang <wi...@gmail.com>.
I'll check that tomorrow... strange it seems that it should work
with/without .htaccess...
Met vriendelijke groet,
Wing Tang
mob: +31624870322
On Mon, Feb 15, 2010 at 5:50 PM, Nilesh Govindarajan <li...@itech7.com>wrote:
> On 02/15/2010 08:23 PM, Wing Tang wrote:
>
>> Hi Nilesh
>>
>> Yes it does exist. I just replaced the text string but still no result.
>> Do I need to an .htaccess to get it to work.
>>
>>
>> Met vriendelijke groet,
>>
>> Wing Tang
>> mob: +31624870322
>>
>>
>> On Mon, Feb 15, 2010 at 3:48 PM, Nilesh Govindarajan <lists@itech7.com
>> <ma...@itech7.com>> wrote:
>>
>> ErrorDocument 404 "This is test 404 error"
>>
>>
>>
> Seems like its being overridden somewhere else. Check configuration
> sequence.
>
> Are you using mod_negotiation and including its config file (for multilang
> errors) somewhere ?
>
> If yes, either put your ErrorDocument directive in .htaccess or somewhere
> after the includes. .htaccess will be better as it will be independent for
> this specific site.
>
>
> --
> Nilesh Govindarajan
> Site & Server Adminstrator
> www.itech7.com
>
> ---------------------------------------------------------------------
> 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: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
Re: [users@httpd] errordocument without htaccess
Posted by Nilesh Govindarajan <li...@itech7.com>.
On 02/15/2010 08:23 PM, Wing Tang wrote:
> Hi Nilesh
>
> Yes it does exist. I just replaced the text string but still no result.
> Do I need to an .htaccess to get it to work.
>
>
> Met vriendelijke groet,
>
> Wing Tang
> mob: +31624870322
>
>
> On Mon, Feb 15, 2010 at 3:48 PM, Nilesh Govindarajan <lists@itech7.com
> <ma...@itech7.com>> wrote:
>
> ErrorDocument 404 "This is test 404 error"
>
>
Seems like its being overridden somewhere else. Check configuration
sequence.
Are you using mod_negotiation and including its config file (for
multilang errors) somewhere ?
If yes, either put your ErrorDocument directive in .htaccess or
somewhere after the includes. .htaccess will be better as it will be
independent for this specific site.
--
Nilesh Govindarajan
Site & Server Adminstrator
www.itech7.com
---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] errordocument without htaccess
Posted by Wing Tang <wi...@gmail.com>.
Hi Nilesh
Yes it does exist. I just replaced the text string but still no result. Do I
need to an .htaccess to get it to work.
Met vriendelijke groet,
Wing Tang
mob: +31624870322
On Mon, Feb 15, 2010 at 3:48 PM, Nilesh Govindarajan <li...@itech7.com>wrote:
> ErrorDocument 404 "This is test 404 error"
Re: [users@httpd] errordocument without htaccess
Posted by Nilesh Govindarajan <li...@itech7.com>.
On 02/15/2010 08:15 PM, Wing Tang wrote:
> Hello,
>
> I want to redirect a http status code 404 to a custom page. I have
> configured within an virtual host the following:
>
> ErrorDocument 404 /custom_404.html
>
> In the access.log I can see the 404 but the custom error page actually
> never shows up.
>
> I havent used the .htaccess file.
>
> Anyone any ideas where I might have gone wrong?
>
> Thanks in advance.
>
> Wing
Does the custom error file exist ? If yes, then try this to see a custom
message -
ErrorDocument 404 "This is test 404 error"
--
Nilesh Govindarajan
Site & Server Adminstrator
www.itech7.com
---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org