Default Error Pages for sharedip vhost

Discussion in 'Feature Requests' started by martinoc, May 31, 2006.

  1. martinoc

    martinoc New Member

    Hi,

    I would like to modify the vhost such that
    it appears like this:
    ###################################
    #
    # ISPConfig vHost Configuration File
    # Version 1.0
    #
    ###################################
    #
    NameVirtualHost xxx.xxx.xxx.xxx:80
    <VirtualHost xxx.xxx.xxx.xxx:80>
    ServerName localhost
    ServerAdmin root@localhost
    DocumentRoot /var/www/sharedip

    Alias /error/ "/var/www/sharedip/error/"
    ErrorDocument 400 /error/invalidSyntax.html
    ErrorDocument 401 /error/authorizationRequired.html
    ErrorDocument 403 /error/forbidden.html
    ErrorDocument 404 /error/fileNotFound.html
    ErrorDocument 405 /error/methodNotAllowed.html
    ErrorDocument 500 /error/internalServerError.html
    ErrorDocument 503 /error/overloaded.html
    </VirtualHost>
    #

    I will need to modify the script that processes /root/ispconfig/isp/conf/vhost.conf.master

    I also need to modify the script that creates the sharedip vhost to add the error pages to the sharedip DocumentRoot.

    This would provide a slight increase in security and its a bit nicer looking for anyone that visits the sharedip by accident (or the curious)
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Have a look at the function make_vhosts() in /root/ispconfig/scripts/lib/config.lib.php.

    The shared IP document root is created by the ISPConfig installer. Have a look at install_ispconfig/setup2 or install.php.
     

Share This Page