Results 1 to 3 of 3
  1. #1

    How do I add custom error pages to Ensim ?

    How do I set up custom error pages in Ensim ? I tried the following tutorial, but it just doesn't work for me:

    Any clues ?

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

  2. #2
    Join Date
    May 2001
    Put ErrorDocument ErrorCode ErrorPage inside the <VirtualHost>

    ErrorDocument 404 /error_docs/404.html

  3. #3
    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/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts