Peeps,
I used to use cpanelproxy successfully on port 443 to server whm, cpanel and webmail. However after the upgrade cpanelproxy refused to work with webmail properly. I started looking into mod_proxy, compiled using apxs and I configured httpd.conf like
ProxyRequests Off
RewriteEngine On
RewriteCond %{HTTP_HOST} ^webmail.myhost.com$ [NC]
RewriteRule ^/(.*)$ http://localhost:2095/$1 [P,L]
RewriteCond %{HTTP_HOST} ^cpanel.myhost.com$ [NC]
RewriteRule ^/(.*)$ http://localhost:2082/$1 [P,L]
RewriteCond %{HTTP_HOST} ^whm.myhost.com$ [NC]
RewriteRule ^/(.*)$ http://localhost:2086/$1 [P,L]
Now cpanel and whm work file with urls https://cpanel.myhost.com and https://whm.myhost.com
but webmail (esp squirrelmail) is erratic on https://webmail.myhost.com. It launches fine but then after I compose an email and send, it tries to go to localhost:2095. After some debugging on squirrelmail code I traced the error to a PHP function called header(). I don;t know why mod_rewrite is missing that rewrite ...
Any ideas?
Has anyone tried to use something to server cpanel, webmail and whm from 443 port?
TIA
linuxxed
I used to use cpanelproxy successfully on port 443 to server whm, cpanel and webmail. However after the upgrade cpanelproxy refused to work with webmail properly. I started looking into mod_proxy, compiled using apxs and I configured httpd.conf like
ProxyRequests Off
RewriteEngine On
RewriteCond %{HTTP_HOST} ^webmail.myhost.com$ [NC]
RewriteRule ^/(.*)$ http://localhost:2095/$1 [P,L]
RewriteCond %{HTTP_HOST} ^cpanel.myhost.com$ [NC]
RewriteRule ^/(.*)$ http://localhost:2082/$1 [P,L]
RewriteCond %{HTTP_HOST} ^whm.myhost.com$ [NC]
RewriteRule ^/(.*)$ http://localhost:2086/$1 [P,L]
Now cpanel and whm work file with urls https://cpanel.myhost.com and https://whm.myhost.com
but webmail (esp squirrelmail) is erratic on https://webmail.myhost.com. It launches fine but then after I compose an email and send, it tries to go to localhost:2095. After some debugging on squirrelmail code I traced the error to a PHP function called header(). I don;t know why mod_rewrite is missing that rewrite ...
Any ideas?
Has anyone tried to use something to server cpanel, webmail and whm from 443 port?
TIA
linuxxed