errordocument without htaccess

--0016e6dab0cda9d89d047fa4aa3a
Content-Type: text/plain; charset=ISO-8859-1

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

--0016e6dab0cda9d89d047fa4aa3a
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hello,<div><br></div><div>I want to redirect a http status code 404 to a cu=
stom page. I have configured within an virtual host the following:</div><di=
v><br></div><div>=A0ErrorDocument 404 /custom_404.html</div><div><br></div>
<div>In the access.log I can see the 404 but the custom error page actually=
never shows up.</div><div><br></div><div>I havent used the .htaccess file.=
</div><div><br></div><div>Anyone any ideas where I might have gone wrong?</=
div>
<div><br></div><div>Thanks in advance.</div><div><br></div><div>Wing</div>

--0016e6dab0cda9d89d047fa4aa3a--
Wing Tang [ Mo, 15 Februar 2010 15:45 ] [ ID #2032343 ]

Re: errordocument without htaccess

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 [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Nilesh Govindrajan [ Mo, 15 Februar 2010 15:48 ] [ ID #2032344 ]

Re: errordocument without htaccess

--0016e6d464cf6e0bda047fa4c609
Content-Type: text/plain; charset=ISO-8859-1

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 [at] itech7.com>wrote:

> ErrorDocument 404 "This is test 404 error"

--0016e6d464cf6e0bda047fa4c609
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div>Hi=A0<span class=3D"Apple-style-span" style=3D"font-family: arial, san=
s-serif; font-size: 13px; border-collapse: collapse; ">Nilesh=A0</span></di=
v><div><span class=3D"Apple-style-span" style=3D"font-family: arial, sans-s=
erif; font-size: 13px; border-collapse: collapse; "><br>
</span></div>Yes it does exist. I just replaced the text string but still n=
o result. Do I need to an .htaccess to get it to work.<div><br><div><br cle=
ar=3D"all">Met vriendelijke groet,<br><br>Wing Tang<br>mob: +31624870322<br=
>

<br><br><div class=3D"gmail_quote">On Mon, Feb 15, 2010 at 3:48 PM, Nilesh =
Govindarajan <span dir=3D"ltr"><<a href=3D"mailto:lists [at] itech7.com">list=
s [at] itech7.com</a>></span> wrote:<br><blockquote class=3D"gmail_quote" sty=
le=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
ErrorDocument 404 "This is test 404 error"</blockquote></div><br>=
</div></div>

--0016e6d464cf6e0bda047fa4c609--
Wing Tang [ Mo, 15 Februar 2010 15:53 ] [ ID #2032345 ]

Re: errordocument without htaccess

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 [at] itech7.com
> <mailto:lists [at] 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 [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Nilesh Govindrajan [ Mo, 15 Februar 2010 17:50 ] [ ID #2032352 ]

Re: errordocument without htaccess

--0016e6da7db8b62b6f047fa8c94f
Content-Type: text/plain; charset=ISO-8859-1

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 <lists [at] 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 [at] itech7.com
>> <mailto:lists [at] 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 [at] httpd.apache.org
> " from the digest: users-digest-unsubscribe [at] httpd.apache.org
> For additional commands, e-mail: users-help [at] httpd.apache.org
>
>

--0016e6da7db8b62b6f047fa8c94f
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I'll check that tomorrow... strange it seems that it should work with/w=
ithout .htaccess...<div><br><div><br clear=3D"all">Met vriendelijke groet,<=
br><br>Wing Tang<br>mob: +31624870322<br>
<br><br><div class=3D"gmail_quote">On Mon, Feb 15, 2010 at 5:50 PM, Nilesh =
Govindarajan <span dir=3D"ltr"><<a href=3D"mailto:lists [at] itech7.com">list=
s [at] itech7.com</a>></span> wrote:<br><blockquote class=3D"gmail_quote" sty=
le=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class=3D"im">On 02/15/2010 08:23 PM, Wing Tang wrote:<br>
</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-l=
eft:1px #ccc solid;padding-left:1ex"><div class=3D"im">
Hi Nilesh<br>
<br>
Yes it does exist. I just replaced the text string but still no result.<br>
Do I need to an .htaccess to get it to work.<br>
<br>
<br>
Met vriendelijke groet,<br>
<br>
Wing Tang<br>
mob: +31624870322<br>
<br>
<br>
On Mon, Feb 15, 2010 at 3:48 PM, Nilesh Govindarajan <<a href=3D"mailto:=
lists [at] itech7.com" target=3D"_blank">lists [at] itech7.com</a><br></div><div clas=
s=3D"im">
<mailto:<a href=3D"mailto:lists [at] itech7.com" target=3D"_blank">lists [at] itec=
h7.com</a>>> wrote:<br>
<br>
=A0 =A0ErrorDocument 404 "This is test 404 error"<br>
<br>
<br>
</div></blockquote>
<br>
Seems like its being overridden somewhere else. Check configuration sequenc=
e.<br>
<br>
Are you using mod_negotiation and including its config file (for multilang =
errors) somewhere ?<br>
<br>
If yes, either put your ErrorDocument directive in .htaccess or somewhere a=
fter the includes. .htaccess will be better as it will be independent for t=
his specific site.<div><div></div><div class=3D"h5"><br>
<br>
-- <br>
Nilesh Govindarajan<br>
Site & Server Adminstrator<br>
<a href=3D"http://www.itech7.com" target=3D"_blank">www.itech7.com</a><br>
<br>
------------------------------------------------------------ ---------<br>
The official User-To-User support forum of the Apache HTTP Server Project.<=
br>
See <URL:<a href=3D"http://httpd.apache.org/userslist.html" target=3D"_b=
lank">http://httpd.apache.org/userslist.html</a>> for more info.<br>
To unsubscribe, e-mail: <a href=3D"mailto:users-unsubscribe [at] httpd.apache.or=
g" target=3D"_blank">users-unsubscribe [at] httpd.apache.org</a><br>
=A0" =A0 from the digest: <a href=3D"mailto:users-digest-unsubscribe [at] =
httpd.apache.org" target=3D"_blank">users-digest-unsubscribe [at] httpd.apache.o=
rg</a><br>
For additional commands, e-mail: <a href=3D"mailto:users-help [at] httpd.apache.=
org" target=3D"_blank">users-help [at] httpd.apache.org</a><br>
<br>
</div></div></blockquote></div><br></div></div>

--0016e6da7db8b62b6f047fa8c94f--
Wing Tang [ Mo, 15 Februar 2010 20:40 ] [ ID #2032361 ]
Webserver » gmane.comp.apache.user » errordocument without htaccess

Vorheriges Thema: Why is enabling SSI for .html files a risk?
Nächstes Thema: q: transfer encoding request header "te: chunked"