Forum Moderators: phranque

Message Too Old, No Replies

How to get a apache server to show a 404 page

you know a error page as if the site is gone, instead of the apache page

         

zeus

1:00 pm on Jan 29, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Now when I remove the index.htm page a standard apache page comes instead, but I want a 404 or what its cald, that way I can remove the hijackers whit the removal tool. How can I get a 404 page.

I need to do this in the fight against all the hijackers/redirecting problems that google has.

Matt Probert

1:56 pm on Jan 29, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The Apache config file will specify the name, and location, of an HTML page to be issued when a 404 error occurs. Often this page is called "notfound.htm", but check in the config file, often /etc/httpd/conf/httpd.conf

Matt

zeus

2:08 pm on Jan 29, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



maybe Im a good webmaster, but when it comes to server stuff Im a total failure. I have found those things you said, but Im not sure if thats the right ones, because when I look at those it looks like the real 404 which I want, but I have to disable the apache stadart page, so when I delete my index page a real 404 page comes. I do have full access to my dedicated server

I use PLESK 7

zeus

10:01 pm on Jan 31, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Any suggestion how I remove the standard apache page when the index.htm is removed, I DONT want to customize, I just need the error page, like if the domain does not exists.

ncw164x

10:10 pm on Jan 31, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Do a search at google for ErrorDocument directive