Corex wrote:I was wondering how todo so i can access the webmail at webmail.mydomain.tld instead of mail.mydomain.tld/mail...
The A record is setup and ready to use, getting this message at the moment:
It works!
This is the default web page for this server.
The web server software is running but no content has been added, yet.
You have to use apache virtual domain. Say you have the domain curse.org and you want to have webmail at webmail.curse.org
you would point your A record for webmail at the server, and using the apache virtual domain, it would track which domain request was sent, and feed a different folder based on that.
However, the easier solution i have devised is:
In CentOS, the default path of apache serving (ie webmail.curse.org) is /var/www/html
there is an index.html file there.
Replace it with your own html file that uses javascript to redirect the browser to https://webmail.curse.org/webmail from the original starting point of webmail.curse.org
Here is the javascript code for that:
<script type="text/javascript">
<!--
window.location = "https://webmail.curse.org/webmail"
//-->
</script>
Just place that in the head of your index.html document.
Enjoy!