Skip to content
WJunction - Webmaster Forum

How can add webmail to my domain so that i can access webmail.example.com

Status
Not open for further replies.
I am using Debian Squeeze Open VZ. My server ip is 69.85.85.154 . I am using the round cube mail interface which can only be accessed by 69.8585154/webmail. I need to hange this and assign webmail as webmail.example.com . I just configured in roundcube configuration file but it didn't solve the problem. How can we do that ?.. Reply ASAP...
 

3 comments

just add a new apache directive:

create new directive file in /etc/apache2/sites-available/ called webmailer

Code:
nano /etc/apache2/sites-available/webmail
<VirtualHost *:443>
        ServerAdmin webmaster@your-domain.com
        ServerName webmail.your-domain.com
        DocumentRoot /usr/share/apache2/roundcubemail/
        <Directory /usr/share/apache2/roundcubemail/>
                Options -Indexes
        </Directory>

        ErrorLog /var/log/apache2/webmailer-error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog /var/log/apache2/webmailer-access.log combined

</VirtualHost>
perhabs you have to change the directory-entries (i'm not sure, if they are located there or in /var/www/webmail or s.th. else)

Enable the site.
Code:
a2ensite webmailer

Restart Apache2
Code:
/etc/init.d/apache2 reload

access your site:
Code:
https://wembail.your-domain.com

this should do it.

Or setup an proxy, that will redicrect requests from http://webmail.your-domain.com to localhost/webmailer
you can find good examples here: How to correctly configure a reverse proxy with Apache, to be used for cross-domain AJAX? - Stack Overflow
 
Last edited:
How To add Each site

I have 4 websites hosted in my server how can i set this webmail for each website in the server .
 
add Server-alias

s.th. like:
Code:
ServerAlias webmail.your-second-domain.com webmail.your-thrid-domain.com

(this should work, though i'm not sure if apache directives can be stacked like this.
alternative just add one serverAlias-Line for each domain)
 
Status
Not open for further replies.

About the author

V
Member · Joined
7
Messages
0
Reactions
1
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom