Own Error Documents not displaying

Discussion in 'Installation/Configuration' started by Cracklefish, Jul 29, 2009.

  1. Cracklefish

    Cracklefish Member

    The Error Docs on all sites on the server do not display.
    "Own Error Docs" is checked for each site (and saved).

    The Vhost files all have a set of errordoc statements
    ErrorDocument 400 /error/400.html
    The site error log shows:

    [Wed Jul 29 13:15:23 2009] [error] [client] File does not exist: /srv/www/news-source.co.uk/web/images.htm
    [Wed Jul 29 13:15:23 2009] [error] [client] File does not exist: /usr/share/apache2/error/404.html
    If "Own Error Docs" is unchecked then the common error docs function correctly.

    ISPconfig & OpenSuse 11.1
  2. mghens

    mghens New Member

    Thanks, having the same issue.
  3. till

    till Super Moderator

    Please enable the error docs, wait a minute and then check the vhost file for the website if the custom error docs arecproperly listed there.
  4. mghens

    mghens New Member

    I think the problem is that my error docs are of the form:


    where the apache server is looking for:

    ErrorDocument 404 /error/404.html
  5. Cracklefish

    Cracklefish Member

    Hi Till,

    Own error docs are enabled, the vhost entries are correct and the files are present in the error folder.

    If I try to access dummy.htm

    the access log gives:

    Code: - - [01/Oct/2009:17:23:53 +0100] "GET /dummy.htm HTTP/1.1" 404 0 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)"
    There is no entry in the error log.

    I have upgraded to since my original post but no change.
  6. till

    till Super Moderator

    Please make sure that you looked into the correct error log. Every site has its own error log file in its log folder.
  7. Cracklefish

    Cracklefish Member

    Silly me! Sorry.

    The error log entries are:

    [Thu Oct 01 17:23:53 2009] [error] [client] File does not exist: /srv/www/greenway.co.uk/web/dummy.htm
    [Thu Oct 01 17:23:53 2009] [error] [client] File does not exist: /usr/share/apache2/error/404.html
  8. till

    till Super Moderator

    Please go trough your apache2.conf file or httpd.conf file, there must be a alias for the /error/ directory pointing to /usr/share/apache2/error. Comment out this alias and restart apache.
  9. Cracklefish

    Cracklefish Member

    There was a line:

    Include /etc/apache2/errors.conf
    in httpd.conf

    Now all is wonderful, thank you.

Share This Page