Web Hosting Talk







View Full Version : How do I add custom error pages to Ensim ?


major
06-29-2002, 12:32 PM
How do I set up custom error pages in Ensim ? I tried the following tutorial, but it just doesn't work for me: http://forum.rackshack.net/showthread.php?s=&threadid=6705

Any clues ?

I have upgraded to PHP 4.1.2 on my Ensim 3.0 server.

YUPAPA
06-29-2002, 01:14 PM
Put ErrorDocument ErrorCode ErrorPage inside the <VirtualHost>

Eg:
ErrorDocument 404 /error_docs/404.html

Global-Host2
06-30-2002, 08:39 PM
Heres my addon for ensim.

NOTE: Where Add 404 html here is add content over 1 kb, or apache wont load it. Doing this will create a folder error_docs in each new virt host with custom error pages and a .htacess file.

cd /home/admin
mkdir var
cd var
mkdir www
cd www
mkdir html
cd html
pico .htaccess
#Add the following
ErrorDocument 401 /error_docs/401.html
ErrorDocument 403 /error_docs/403.html
ErrorDocument 404 /error_docs/404.html
ErrorDocument 500 /error_docs/500.html
[ctrl x] Click Yes, then save
mkdir error_docs
cd error_docs
pico 401.html
#Add the Following
Add 401 html here
[ctrl x] Click Yes, then save
pico 403.html
#Add the Following
Add 403 html here
[ctrl x] Click Yes, then save
pico 404.html
#Add the Following
Add 404 html here
[ctrl x] Click Yes, then save
pico 500.html
#Add the Following
Add 500 html here
[ctrl x] Click Yes, then save
/etc/rc.d/init.d/httpd restart
chmod 0777 401.html
chmod 0777 403.html
chmod 0777 404.html
chmod 0777 500.html
tar -cf virtDomain.tar var
cp virtDomain.tar /etc/appliance/customization/