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?
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