Automatic directory forwarding

Discussion in 'General' started by linus, Sep 2, 2005.

  1. linus

    linus Member

    Hello and thank you for a very good project this far.

    Is there an easy way to add standard directory aliases to a virtual host template that would affect all domains?

    It is probably possible manually only via under /etc/apache2/vhosts/Vhosts_ispconfig.conf.

    For instance the following directories could be active after adding a domain:
    customersdomain.com/mail
    customersdomain.com/help
    customersdomain.com/admin

    Do you have any advice or any solution? Thank you for any answer :)
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You can have a look in the file:

    /root/ispconfig/scripts/lib/config.lib.php

    there is a PHP function for building the vhost file when a new web is added (line 1188):

    function make_vhost

    The vhost file is based on the template:

    /root/ispconfig/isp/conf/vhost.conf.master
     
  3. falko

    falko Super Moderator Howtoforge Staff

    You can also add custom Apache directives in the Apache Directives field for each web site in ISPConfig. That way your directives will also be included in SSL vhosts which are not part of the template /root/ispconfig/isp/conf/vhost.conf.master.
     

Share This Page