Computer Science Canada

apache: 404 error message...

Author:  Homer_simpson [ Tue Aug 26, 2003 1:22 am ]
Post subject:  apache: 404 error message...

need to modify it...i know it's located in one of the files... which one is it?

Author:  octopi [ Tue Aug 26, 2003 2:43 am ]
Post subject: 

.htaccess file

ErrorDocument 404 /pathto.php

You really should look for anwsers yourself first.

Author:  Homer_simpson [ Tue Aug 26, 2003 2:49 am ]
Post subject: 

well actually i did look for it my self and this is what i found
#ErrorDocument 404 /missing.html
i kept changing it but it made no difference... Confused

I even "googled" it

Author:  octopi [ Tue Aug 26, 2003 2:54 am ]
Post subject:

....have you tried removing the comment from infront of it? (#)

Author:  Homer_simpson [ Tue Aug 26, 2003 3:08 am ]
Post subject: 

yes i have Laughing
still doesn't work...
this is what it looks like now
ErrorDocument 404 /missing.php

Author:  octopi [ Tue Aug 26, 2003 3:12 am ]
Post subject: 

what kind of error are you getting?

Do you get the default error page still?

Or do you get another one saying File Not Found, and Additional error occured trying to find the error document.?

Did you add a .htaccess file?
Does the file missing.php exist in the main dir?

Author:  Homer_simpson [ Tue Aug 26, 2003 12:17 pm ]
Post subject: 

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Apache/1.3.23 Server at localhost Port 80

Author:  rizzix [ Tue Aug 26, 2003 12:50 pm ]
Post subject: 

take a look at ur error log. what do u find there?

Author:  Homer_simpson [ Tue Aug 26, 2003 1:27 pm ]
Post subject: 

the 404 message :

[Tue Aug 26 13:37:05 2003] [error] [client] File does not exist: c:/apache/htdocs/default.ida

Author:  Blade [ Tue Aug 26, 2003 2:31 pm ]
Post subject: 

okay, i tested this custom 404 on my windows server.
what i did was i added my line to the httpd.conf file

ErrorDocument 404 /missing.php

i restarted my server.... then went to localhost/poop.htm it gave me a default error page, so i went to my error.log to check out to see where it was looking... prettymuch the documentroot + the file you specified (in my case missing.php)

thats what should have happened to you.
however, did you restart your server after editing your httpd.conf?

Author:  Homer_simpson [ Tue Aug 26, 2003 4:31 pm ]
Post subject: 

100 times :S

Author:  octopi [ Tue Aug 26, 2003 8:59 pm ]
Post subject: 

Is there a reason your requesting the file the code red virus uses?

I'm confident your not showing us the proper lines from the error log.

Author:  Amailer [ Tue Aug 26, 2003 9:08 pm ]
Post subject: 

How about someone just give them their Httd file???

Author:  octopi [ Tue Aug 26, 2003 9:13 pm ]
Post subject: 

Well....if he made a .htaccess file like I mentioned...he wouldn't have nearly as many problems.

its pretty simple. make a file name

put this line in it:
ErrorDocument 404 /missing.php

You don't need to restart your server or anything.

If hes getting an Internal Server error, something else is wrong. He must have fucked up his config file, or the .htaccess file.

If he shows us the right lines from his error log it would be alot easier to help him though....

Author:  Homer_simpson [ Wed Aug 27, 2003 1:36 pm ]
Post subject: 

this is my conf directory + my error log