Add Comment

You are not currently logged in. If you do not have a user account then please consider creating one and logging in before you post your comment. This will allow you to track replies to your comment, and take part in the site much more freely.

To add your comment, fill in all the boxes below and then preview it to make sure you're happy with the way that it looks.

This is the comment you were replying to, attached to the article Hosting multiple websites with Apache2:


Re: Hosting multiple websites with Apache2
Posted by trollll (64.128.xx.xx) on Thu 6 Jul 2006 at 23:19

I found it very easy to add webmail to all domains given this sort of setup, by adding the following to each conf:

        ServerAdmin webmaster@example.org
        ServerName  webmail.example.org

        # Indexes + Directory Root.
        DirectoryIndex index.html
        DocumentRoot /home/www/www.example.org/webmail/

        # Logfiles
        ErrorLog  /home/www/www.example.org/logs/error.log
        CustomLog /home/www/www.example.org/logs/access.log combined

Then, you can install Horde (for example, as I did) in /home/www/webmail, have it use the hostname as part of the login, and make a symbolic link by doing the following:

$ ln -s /home/www/webmail /home/www/www.example.org/webmail

I made symbolic links rather than defining the path directly in the conf, because that way I can easily change webmails without restarting the server. Especially handy if a few domains should have a different set of modules enabled or use different authentication methods, etc.


Username:Anonymous
Title:
Your Comment:

Posting Format:

 

Inappropriate comments will be removed.

Some help on entry formatting is available

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search