solved.
1. In /etc/apache2/sites-available/00_master.conf I have changed
Code:
ServerName domain.tld
to
Code:
ServerName domain.tld:348
2. In /var/www/ispcp/gui/include/login.php in line 188
Code:
if ($checkReferer) {
if (isset($_SERVER['HTTP_REFERER']) && !empty($_SERVER['HTTP_REFERER'])) {
$info = parse_url($_SERVER['HTTP_REFERER']);
if (isset($info['host']) && !empty($info['host'])) {
if ($info['host'] != $_SERVER['HTTP_HOST'] || $info['host'] != $_SERVER['SERVER_NAME']) {
set_page_message(tr('Request from foreign host was blocked!'));
redirect_to_level_page();
}
}
}
}
I have changed to
Code:
if ($checkReferer) {
if (isset($_SERVER['HTTP_REFERER']) && !empty($_SERVER['HTTP_REFERER'])) {
$info = parse_url($_SERVER['HTTP_REFERER']);
if (isset($info['host']) && !empty($info['host'])) {
if ($_SERVER['SERVER_PORT']!=80) {
if ($info['host'].':'.$_SERVER['SERVER_PORT'] != $_SERVER['HTTP_HOST']|| $info['host'].':'.$_SERVER['SERVER_PORT'] != $_SERVER['SERVER_NAME'].':'.$_SERVER['SERVER_PORT']) {
set_page_message(tr('Request from foreign host was blocked!'));
redirect_to_level_page();
}
}else{
if ($info['host'] != $_SERVER['HTTP_HOST'] || $info['host'] != $_SERVER['SERVER_NAME']) {
set_page_message(tr('Request from foreign host was blocked!'));
redirect_to_level_page();
}
}
}
}
}
--
querer es poder