![]() |
![]() |
| Main | Intro | Perl | Office | php | Download | Demo | News | Development |
|
Authentication System Download Manager Install Guide News System Install Guide Custom Apache Error Handlers Install Guide Telephone Directory Install Guide |
Installation instructions the apache active error handlers.1. Copy files to your system.Copy the files to a suitable location. I use /home/httpd/errordocs for a redhat based system but you will need to adjust this to suit your system if it is different. I suggest using a location near the apache DocumentRoot location.
Copy the images to your images directory. I use /home/httpd/icons/ again standard redhat. This is aliased as /icons/ in the apache config. If your system is different you will need to edit the files. Set the file ownership to the apache server. If you are not sure who this is check the apache config file.
Edit the perl script $BaseDir to point to the location you placed the files in. 3. make a copy of the apache config fileYes really, do it now. This means you!. 4. Edit the apache config fileUsing your favorite text editor edit the apache config file to add the folowing lines :
ScriptAlias /errordocs/ /home/httpd/errordocs/ ## set to location errordocs are placed
# Customizable error response (Apache style) ErrorDocument 401 /errordocs/error.pl ErrorDocument 403 /errordocs/error.pl ErrorDocument 404 /errordocs/error.pl ErrorDocument 500 /errordocs/error.pl
< Directory /home/httpd/errordocs > ## set to same location as scriptalias AllowOverride None Options ExecCGI < /Directory > When all that is done restart the apache server 5. TestTest the scripts by calling a file that dosen't exist etc.... 6. ProblemsIE4 /5 uses some internal error handlers if the vanilla 404 error doc is supplied you get a spruced up one from good old MS. However the IE page does not give the same information and if you use IE to test these scripts and you have not configured properly you may not get all the help you need. Check the server error logs for help or use NS or opera. |