• Knowledge Base: Advanced logging and custom error pages.


    1. How do I activate custom error pages?
    2. How do I activate Referer logs?
    3. How do I activate host lookups?

    1. How do I activate custom error pages? - Top

    Carefully follow the steps below, instructions are provided for just one domain or for a entire server.

    Full Server activation

    1. Go to /etc/httpd/conf directory.
    2. Make a backup of the httpd.conf file
    3. using either vi or pico open the httpd.conf file
    4. Look for "#ErrorDocument 404 /missing.html" remove the "#" sign from the front of the line.
    5. Exit and save changes
    6. Restart Web server by typing httpd.restart than hit return


    For a domain to display a custom missing docs page just create a HTML page called missing.html and put it in the main HTML directory of the domain.


    Single Domain activation

    Create a .htaccess file in the domain main html directory. Below is a example of the entries you can make to redirect error pages.

    ErrorDocument 403 /errors/restricted.html
    ErrorDocument 404 "Sorry, that file was not found.
    ErrorDocument 500 http://yourdomain.net/errors/server_error.html

    1. The first is a relative call to a directory called errors and html page called restricted.html
    2. The send example prints the message you put in quotes without calling a html page.
    3. The third is a full URL call to the error page you woul like returned.



    Note: in order for IE to dispaly the missing.html page the file must be atleast 500k in size.






    - Updated: April 21, 2001

    2. How do I activate Referer logs? - Top

    Referer and Agent logs are activated by default,
    unfortunatly analog stats will not display referer or agent information that is written to the log files under the current installation. To fill this need we are now installing a second stats package called webalizer
    which can be accessed by your client with the following URL:

    http://the-customer-domain/webstats

    If your account was activated before we started offering webalizer you can use the client_tools
    program to activate them.

    type as user root

    client_tools than return

    Select webalizer from the menu.

    This product is a freeware offering and currently full support by our tech dept. is not available.



    - Updated: May 15, 2001

    3. How do I activate host lookups? - Top

    Carefully follow the steps below.

    1) Go to /etc/httpd/conf directory.
    2) Make a backup of the httpd.conf file
    3) using either vi or pico open the httpd.conf file
    4) Look for "HostnameLookups Off", change the Off to On.
    5) Exit and save changes
    6) Restart Web server by typing httpd.restart than hit return

    Now instead of ip # the actual host name should appear in the stats. This will not change existing logs only new ones as there written.

    - Updated: April 13, 2001

    [e-Mail me the FAQs]    -     [Search our FAQs]