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/showthrea...&threadid=6705
Any clues ?
I have upgraded to PHP 4.1.2 on my Ensim 3.0 server.
Printable View
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/showthrea...&threadid=6705
Any clues ?
I have upgraded to PHP 4.1.2 on my Ensim 3.0 server.
Put ErrorDocument ErrorCode ErrorPage inside the <VirtualHost>
Eg:
ErrorDocument 404 /error_docs/404.html
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/