RE: webmail access using webmail.mydomain.com
07-17-2015, 11:21 PM
(This post was last modified: 07-18-2015, 12:12 AM by charityz2.
Edit Reason: Update
)
Hey,
I am curious how to do this myself, I tried the code provided on here which lead to an internal 500 Error which is understandable if you host multiple domains even if you are setting it to all domains it can still cause errors with the panel with it being in early release stages.
You should have your code at least matching your domain name like the following;
##
</VirtualHost>
# Configuration for WebMail
<VirtualHost domain.tld:80>
ServerAlias webmail.domain.tld
DocumentRoot "/etc/sentora/panel/etc/apps/webmail/"
AddType application/x-httpd-php .php
<Directory "/etc/sentora/panel/etc/apps/webmail/">
Options +FollowSymLinks -Indexes
AllowOverride All
Require all granted
</Directory>
##
I will have a look around it now and I should be able to get it working but I'll keep an eye on out here and keep you updated if I find anything.
** Update **
Just explaining myself a little here, you should include the domain name if you are setting it for a vhost on a single domain name, you should only use .* if you are setting it as a global rule.
I am curious how to do this myself, I tried the code provided on here which lead to an internal 500 Error which is understandable if you host multiple domains even if you are setting it to all domains it can still cause errors with the panel with it being in early release stages.
You should have your code at least matching your domain name like the following;
##
</VirtualHost>
# Configuration for WebMail
<VirtualHost domain.tld:80>
ServerAlias webmail.domain.tld
DocumentRoot "/etc/sentora/panel/etc/apps/webmail/"
AddType application/x-httpd-php .php
<Directory "/etc/sentora/panel/etc/apps/webmail/">
Options +FollowSymLinks -Indexes
AllowOverride All
Require all granted
</Directory>
##
I will have a look around it now and I should be able to get it working but I'll keep an eye on out here and keep you updated if I find anything.
** Update **
Just explaining myself a little here, you should include the domain name if you are setting it for a vhost on a single domain name, you should only use .* if you are setting it as a global rule.