Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 14 of 14
  1. #1
    Member
    Join Date
    Jun 2004
    Posts
    43

    Default CNAME Problem Cannot redirect properly

    I have launched a new webmail system called wmail.myweb.com

    i have 3 websites on the same server called
    abc.com
    def.com
    ghi.com

    I am using cpanel 11

    I have created cname for wmail.abc.com to pint to wmail.myweb.com

    What I want is wmail.myweb.com to be used as a standard webmail across all domains.

    I tried to do that, but it actually gives me the server default page which resides on the IP of wmail.myweb.com

    Can someone guide as to anything needs to be done on website wmail.myweb.com

    Thanks

  2. #2
    Member
    Join Date
    Jun 2004
    Posts
    43

    Default Someone Please help

    Please help any one.

  3. #3
    Member
    Join Date
    Jan 2008
    Posts
    43

    Default

    Put this in your apache pre include
    <VirtualHost 123.123.123.123:80>
    ServerName wmail.*
    ServerAlias wmail.*
    ProxyPass / http://wmail.myweb.com/
    ProxyPassReverse / http://wmail.myweb.com/
    </VirtualHost>


    or


    <VirtualHost 123.123.123.123:80>
    ServerName wmail.*
    ServerAlias wmail.*
    DocumentRoot /home/username/public_html
    </VirtualHost>

    changing the documentroot to the webmail location on your server

  4. #4
    Member
    Join Date
    Jun 2004
    Posts
    43

    Default Re:

    Dear johnmigen

    Thanks for your reply, but I did not understand the part "Put this in your apache pre include"

    Do I have to put it in the httpd.conf file, simply, or something special, please advise.

    Thanks

  5. #5
    Member
    Join Date
    Jan 2008
    Posts
    43

    Default

    Yup, place this in your httpd.conf or for simplicity, go to your whm, under apache setup, include, preinclude. Then it will do the rest for you.

  6. #6
    Member
    Join Date
    Jun 2004
    Posts
    43

    Default Re:

    Hi

    I did try it

    1. If a try the following the page does not open
    <VirtualHost 123.123.123.123:80>
    ServerName wmail.*
    ServerAlias wmail.*
    ProxyPass / http://wmail.myweb.com/
    ProxyPassReverse / http://wmail.myweb.com/
    </VirtualHost>

    2. I get internal server error when i try the below:
    <VirtualHost 123.123.123.123:80>
    ServerName wmail.*
    ServerAlias wmail.*
    DocumentRoot /home/username/public_html
    </VirtualHost>

    Can you suggest something

  7. #7
    Member
    Join Date
    Jun 2004
    Posts
    43

    Default Re:

    I am doing it through WHM, does that make a difference

  8. #8
    Member
    Join Date
    Jan 2008
    Posts
    43

    Default

    For 1 to work, you need to install mod_proxy

    For 2, if you run suphp you might need to place additional parameters inside the virtualhost, refer to your httpd.conf for samples of virtualhost created by apache, replicate the virtualhost and make amendments to suit your requirement.

  9. #9
    Member
    Join Date
    Jun 2004
    Posts
    43

    Default Re:

    Hi

    I am use suphp, I tried it does not go through can you please write me teh entry which would go with suphp, also I will not be able to install mod_proxy as well.

    Please advise.

  10. #10
    Member
    Join Date
    Jun 2004
    Posts
    43

    Default Re:

    Hi there, did you find some time, to answer my query, most appreciated if you could.

    Thanks...

  11. #11
    Member
    Join Date
    Jan 2008
    Posts
    43

    Default

    To install mod_proxy, you can use apache update to install. Once you are all set, then you add these entry:

    <VirtualHost 123.123.123.123:80>
    ServerName wmail.*
    ProxyPass / http://wmail.myweb.com/
    ProxyPassReverse / http://wmail.myweb.com/
    <IfModule mod_suphp.c>
    suPHP_UserGroup username username
    </IfModule>
    <IfModule !mod_disable_suexec.c>
    User username
    Group username
    </IfModule>
    </VirtualHost>
    Last edited by johnmigen; 03-22-2008 at 11:24 AM.

  12. #12
    Member
    Join Date
    Jun 2004
    Posts
    43

    Default Re:

    Hi Thanks for the reply

    Can you tell me how whats
    vodien vodien i did not get that

  13. #13
    Member
    Join Date
    Jan 2008
    Posts
    43

    Default

    Sorry, my mistake, change those values to your username. Those are mine.

  14. #14
    Member
    Join Date
    Jun 2004
    Posts
    43

    Default Re:

    Thanks for the update

    But could you tell me how do i find out mod_proxy is installed with my apache is there a quick way to find out, please advise.

Similar Threads & Tags
Similar threads

  1. CName Redirect ?
    By fluxlabs in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-15-2010, 06:03 PM
  2. cname redirect stops working periodically?
    By sifuhall in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-09-2010, 07:38 AM
  3. How can I redirect a subdomain to goto a site at another server? CNAME?
    By EdRooney in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-13-2006, 05:25 AM
  4. cname url redirect
    By Aquitaine in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 03-10-2005, 07:44 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube