-
Incident report
-
Resolution: Duplicate
-
Major
-
None
-
2.0.6
-
None
-
nginx/php-fpm
Hi
I've 2 server with ipfailover:
sv.exemple.com is the service address
sv1.exemple.com and sv2.exemple.com are the addresses of my 2 servers
I'm using nginx/php-fpm default config (with "server_name sv.exemple.com sv1.exemple.com sv2.exemple.com;"
If i go on sv2.exemple.com,
$_SERVER['SERVER_NAME'] = sv.exemple.com
and $_SERVER['HTTP_HOST'] = sv2.exemple.com
the problem is in ./frontends/php/include/classes/class.curl.php (line 54)
-
-
- $this->url = $url = $protocol.'://'.$_SERVER['SERVER_NAME'].':'.$_SERVER['SERVER_PORT'].$_SERVER['SCRIPT_NAME'].'?'.$this->getQuery(); ###
We should use $_SERVER['HTTP_HOST'] or $ZBX_SERVER_NAME
- $this->url = $url = $protocol.'://'.$_SERVER['SERVER_NAME'].':'.$_SERVER['SERVER_PORT'].$_SERVER['SCRIPT_NAME'].'?'.$this->getQuery(); ###
-
For exemple, it breaks sv2.exemple.com/zabbix/items.php pagination (link to page 2 is sv.exemple.com/zabbix/items.php?sid=aaaaaaaa&page=2)
- duplicates
-
ZBX-4986 multiple pages don't work properly through reverse proxy
- Closed