Our hostingprovider has upgraded his version of cPanel to version number 11. Now my cpanelproxy install stopped working. After logging in, it refers to an URL with portnumber 2095, so proxying fails...
It is important that this proxy system will work on the new cPanel 11.1 system! This will be soon the official release which are supported... could you fix it soon?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
To clarify this ticket, as another party with this same problem,
It orginally goes to 80, then jumps over to port 2095 after requiring you to Auth again. The only way that I can figure this out, is not to login in, and find out hte URL for the client that your trying to use, and then use that THEN login.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I also have a problem now that my host has upgraded to cPanel 11.
When I use www.domainname.com.au/webmail everything works fine.
But when I use webmail.domainname.com.au it asks me for a username and password twice!
After I do it twice it then goes in and works fine.
I have to do this everytime I use the cpanel proxy and its annoying!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The problem is that cPanel 11 redirects the browser to /webmail/<skin_name> by using "Location:" header, and cPanel Proxy doesn't replace /webmail references in the header. Here is my quickfix:
Original code
while (true) {
$data = fgets($server, 10240); // FIXME: Can we optimize here with another buffer-size?
if (strlen(trim($data))==0) break;
Any idea when this will be resolved. Strangely accessing webmail via the button within cpanel does not create such problem. Now I would like to know how I can configure another mailbox to this icon or maybe even add icons.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: NO
It is important that this proxy system will work on the new cPanel 11.1 system! This will be soon the official release which are supported... could you fix it soon?
Logged In: NO
To clarify this ticket, as another party with this same problem,
It orginally goes to 80, then jumps over to port 2095 after requiring you to Auth again. The only way that I can figure this out, is not to login in, and find out hte URL for the client that your trying to use, and then use that THEN login.
Logged In: NO
I also have a problem now that my host has upgraded to cPanel 11.
When I use www.domainname.com.au/webmail everything works fine.
But when I use webmail.domainname.com.au it asks me for a username and password twice!
After I do it twice it then goes in and works fine.
I have to do this everytime I use the cpanel proxy and its annoying!
Logged In: YES
user_id=688886
Originator: NO
The problem is that cPanel 11 redirects the browser to /webmail/<skin_name> by using "Location:" header, and cPanel Proxy doesn't replace /webmail references in the header. Here is my quickfix:
Original code
while (true) {
$data = fgets($server, 10240); // FIXME: Can we optimize here with another buffer-size?
if (strlen(trim($data))==0) break;
// Fix hostname in redirects, cookies...
$data = str_replace(
array('localhost:2095', 'localhost:2082', 'localhost:2086'),
array($webmailhost, $cpanelhost, $whmhost),
$data);
if (substr($data, 0, 11) == 'Set-Cookie:') {
$data = str_replace(
'; domain=localhost',
'; domain='.$_SERVER['HTTP_HOST'],
$data);
}
header($data, false);
}
Fixed code
while (true) {
$data = fgets($server, 10240); // FIXME: Can we optimize here with another buffer-size?
if (strlen(trim($data))==0) break;
// Fix hostname in redirects, cookies...
$data = str_replace(
array('localhost:2095', 'localhost:2082', 'localhost:2086'),
array($webmailhost, $cpanelhost, $whmhost),
$data);
if (substr($data, 0, 11) == 'Set-Cookie:') {
$data = str_replace(
'; domain=localhost',
'; domain='.$_SERVER['HTTP_HOST'],
$data);
}
$data = preg_replace('_(\'|"|=|Location: )/webmail_', '$1/webmail_', $data); //<= This is the fix
header($data, false);
}
Hope it works for you...
Logged In: NO
Any idea when this will be resolved. Strangely accessing webmail via the button within cpanel does not create such problem. Now I would like to know how I can configure another mailbox to this icon or maybe even add icons.
Logged In: NO
A fix appears in the Cpanel forums:
http://forums.cpanel.net/showthread.php?p=330726&posted=1#post330726
Look at post #33.
Logged In: YES
user_id=1167649
Originator: NO
Cpanel 11 support:
http://oderlandblogg.com/?p=69
Logged In: NO
The fix presented by jkormendi seems to work well.
Logged In: NO
http://community.nethosted.co.uk/post_14258.html
Logged In: YES
user_id=1950638
Originator: NO
Working Fix : http://community.nethosted.co.uk/post_14258.html