logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: VirtualHost not following ErrorDocument 404
Author
robbiesyd



Joined: 19 May 2009
Posts: 1

PostPosted: Tue 19 May '09 5:49    Post subject: VirtualHost not following ErrorDocument 404 Reply with quote

Hi

I have a problem with my Virtual Hosts not following my ErrorDocument 404.

Here is an example -

<VirtualHost xxx.xxx.xxx.212>
ServerAdmin webmaster@localhost
ServerName mysite.com
DocumentRoot /var/www/mysite
DirectoryIndex index.php index.html

#ErrorDocument 404 http://www.mysite.com commented out cos didnt work
ErrorDocument 404 "404"
#thought id try a text message as specifying documents doesnt work, tried several

ErrorLog /var/log/apache2/mysite-error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/mysite-access.log combined
</VirtualHost>

When you go to www.mysite.com/doesntexist you get the message
#######################
Not Found

The requested URL /dfsdfsds was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.3 (Debian) PHP/5.2.0-8+etch13 Server at peerstop.com Port 80
######################
Im particularly concerned with the "Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request." bit.

I might also point out there is no other references to ErrorDocument directives in my entire /etc/apache2 directory, ive searched with grep to confirm.

Any idea on what might be going on?

-Robbie
Back to top
acid.-.burn



Joined: 15 Jan 2007
Posts: 17

PostPosted: Tue 19 May '09 10:05    Post subject: Reply with quote

you using ie if so that is the prob it uses it own error doc
try fire fox or google chrome or somthing besides ie
but ever thing looks right to me i might be wrong
Back to top


Reply to topic   Topic: VirtualHost not following ErrorDocument 404 View previous topic :: View next topic
Post new topic   Forum Index -> Apache