How change the webmail url in Proxy subdomains
I would like to change the webmail url automatically generated in the config proxy subdomains in WHM.
The generated code in httpd.conf is this for the proxy subdomains:
RewriteCond %{HTTP_HOST} ^webmail\.
RewriteRule ^/(.*) http://127.0.0.1:2095/$1 [P]
Would you like to switch to this:
RewriteCond %{HTTP_HOST} ^webmail\.
RewriteRule ^/(.*) http://soft.domain.com/$1 [P]
The soft.domain.com is an account with a webmail software.
This code is automatically generated and I can not change by editing httpd.conf.
Can someone help me?
Thank you.
-
Hello :) These entries are stored in the following file: /var/cpanel/templates/apache2/main.default
You will need to copy this file to the following name:/var/cpanel/templates/apache2/main.local
Note that the "apache2" part of the path may change, depending on the version of Apache installed on your system. Next, edit the newly copied local file to the modified values of your preference, save the file, and run the following commands:/usr/local/cpanel/bin/apache_conf_distiller --update /usr/local/cpanel/bin/build_apache_conf /scripts/restartsrv_httpd
Thank you.0 -
It worked perfectly! Thank you for your help! 0 -
Just to say thanks Michael! 0 -
hi i am also trying to achieve this as well access my webmail without adding the port numbers. i do not want to use the can you please assist with doing the above as i am still new to linux 0
Please sign in to leave a comment.
Comments
4 comments