Website in one server, mail in another
Hi.
I recently changed the website to one server, keeping the mail in the old server, so:
domain.com A IPNewServer
domain.com MX mail.domain.com
mail A IPOldServer
-----------------------------
webmail.domain.com -> OK
mail.domain.com -> OK
domain.com/webmail -> Redirects to domain.com:2096 on new server.
-----------------------------
So how can i redirect domain.com/webmail redirecting to old server email?
Thanks.
Best Regards.
-
Hello, You could try following the workaround advice referenced on the following thread: Change /webmail Redirect for One Domain However, note that with EA4, the instructions for modifying an individual Virtual Host have changed and are documented at: Modify Apache Virtual Hosts with Include Files - EasyApache 4 - cPanel Documentation Thank you. 0 -
Hi. Thanks for pointing out.. i also find this useful: tecadmin.net/add-custom-settings-in-whm-cpanel-apache-virtualhost/ Ended up doing this: -For Apache 2.4, check Apache version and change 2_4 to Apache version -Non SSL mkdir -p /etc/apache2/conf.d/userdata/std/2_4/domain/domain.com/ cd /etc/apache2/conf.d/userdata/std/2_4/domain/domain.com/ nano extra.conf ScriptAlias /webmail /home/domain/public_html/email/ ScriptAliasMatch ^/webmail/(.*) /home/domain/public_html/email/ /scripts/rebuildhttpdconf service httpd restart0 -
Hello @acpro, I'm happy to see you were able to find a solution. Thank you for updating this thread with the outcome. 0
Please sign in to leave a comment.
Comments
3 comments