Carefully follow the steps below, instructions are provided for just one domain or for a entire server.
Full Server activation
Go to /etc/httpd/conf directory.
Make a backup of the httpd.conf file
using either vi or pico open the httpd.conf file
Look for "#ErrorDocument 404 /missing.html" remove the "#" sign from the front of the line.
Exit and save changes
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
The first is a relative call to a directory called errors and html page called restricted.html
The send example prints the message you put in quotes without calling a html page.
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.
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.
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.