webmail proxydomains not working, always redirects to 2096

Xipher

Member
Mar 22, 2010
9
0
51
cPanel Access Level
Root Administrator
No idea whats going on here, I've read endless threads and articles about this and found no single person who's resolved the problem.

I run '/scripts/proxydomains add'

"No changes needed" after every domain

check the DNS, all the entries are there, check the httpd.conf, all the entries are there, modproxy works fine, but it ALWAYS redirects to port 2096 no matter if I use the server's domain, or if I use another domain on the server.

What am I doing wrong here?

Code:
<VirtualHost 1.2.3.4:80 127.0.0.1:80 *>
    ServerName servername.domain.net

    ServerAlias cpanel.* whm.* webmail.* webdisk.* autodiscover.* autoconfig.*

    DocumentRoot /usr/local/apache/htdocs
    ServerAdmin [email protected]
    <IfModule mod_suphp.c>
        suPHP_UserGroup nobody nobody
    </IfModule>
    RewriteEngine On
    <IfModule core.c>
        SSLProxyEngine On
    </IfModule>
    RewriteCond %{HTTP_HOST} ^cpanel\.
    RewriteCond %{HTTPS} on
    RewriteRule ^/(.*) https://127.0.0.1:2083/$1 [P]
    RewriteCond %{HTTP_HOST} ^webmail\.
    RewriteCond %{HTTPS} on
    RewriteRule ^/(.*) https://127.0.0.1:2096/$1 [P]
    RewriteCond %{HTTP_HOST} ^whm\.
    RewriteCond %{HTTPS} on
    RewriteRule ^/(.*) https://127.0.0.1:2087/$1 [P]
    RewriteCond %{HTTP_HOST} ^webdisk\.
    RewriteCond %{HTTPS} on
    RewriteRule ^/(.*) https://127.0.0.1:2078/$1 [P]
    RewriteCond %{HTTP_HOST} ^cpanel\.
    RewriteRule ^/(.*) http://127.0.0.1:2082/$1 [P]
    RewriteCond %{HTTP_HOST} ^webmail\.
    RewriteRule ^/(.*) http://127.0.0.1:2095/$1 [P]
    RewriteCond %{HTTP_HOST} ^whm\.
    RewriteRule ^/(.*) http://127.0.0.1:2086/$1 [P]
    RewriteCond %{HTTP_HOST} ^webdisk\.
    RewriteRule ^/(.*) http://127.0.0.1:2077/$1 [P]

    RewriteCond %{HTTP_HOST} ^autodiscover\.
    RewriteRule ^[^?]*(\?.*)? http://127.0.0.1/cgi-sys/autodiscover.cgi [P]
    RewriteCond %{HTTP_HOST} ^autoconfig\.
    RewriteRule ^[^?]*(\?.*)? http://127.0.0.1/cgi-sys/autoconfig.cgi [P]

    UseCanonicalName Off
</VirtualHost>
Code:
Always redirect to SSL: OFF
Non-SSL redirect destination: Hostname
SSL redirect destination: Hostname
 

Xipher

Member
Mar 22, 2010
9
0
51
cPanel Access Level
Root Administrator
Just for fun, try another browser. Probably of no help here but it can't hurt.
Did try that as well :C Chrome, Firefox, IE across 3 computers and a phone, and 4 different connections at 4 different locations, put up a new domain on the server and tried that, also just did an easyapache build for the latest version of php, and that didn't work any magic either, not that I thought it would.

Its really strange because if I Google the issue, tons of people seem to have the problem, tons more say it works fine, and nobody I've found has posted anything to say "I fixed it!".
 

Infopro

Well-Known Member
May 20, 2003
17,113
507
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
Let's take this to a whole other level then shall we? :)

From within WHM, top right corner is a Support menu. On it a link to "Contact cPanel" please use that link to open a ticket. And, if you would be so kind, post back that new ticket ID here so I can follow it with you. Let's get this fixed for you.


Thanks in advance!
 

Xipher

Member
Mar 22, 2010
9
0
51
cPanel Access Level
Root Administrator
Let's take this to a whole other level then shall we? :)

From within WHM, top right corner is a Support menu. On it a link to "Contact cPanel" please use that link to open a ticket. And, if you would be so kind, post back that new ticket ID here so I can follow it with you. Let's get this fixed for you.


Thanks in advance!
Can do, all done! Sorry I've been a bit slow to respond, another busy day at work!

Ticket ID is 4407077