Page 1 of 1

v-host on apache2

Posted: 29 Jan 2009, 13:27
by fredrik
Hi how do I get "pim" or horde to ansver on me

epost.mydomain.com
in stead of www.mydomain.com/pim

Posted: 29 Jan 2009, 15:18
by Xet
As root, create a config file that describes your virtual host. Put it, or create a symlink to it, in the folder /etc/apache2/sites-available. The file should look something like:

Code: Select all

<VirtualHost *:80>
        ServerName epost.mydomain.com
        DocumentRoot /usr/share/horde3
        ServerAdmin [email protected]
        ErrorLog /var/log/apache2/epost_error.log
        LogLevel warn
        CustomLog /var/log/apache2/epost.log combined
        ServerSignature On
</VirtualHost>
Restart apache and that should be it.

Code: Select all

/etc/init.d/apache2 restart
If you want to support https, simply add it to the same file.