PDA

View Full Version : Automatic directory forwarding


linus
2nd September 2005, 11:43
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 :)

till
2nd September 2005, 12:09
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 :)

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

falko
2nd September 2005, 21:34
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.