-
Incident report
-
Resolution: Fixed
-
Major
-
1.8.12
-
Any Linux server that has the frontend installed and accesses the front end with a link like http://rewritehost/zabbixhost/zabbix/
When using mod_proxy as follows on the rewritehost:
ProxyPass /zabbixhost http://zabbixhost
ProxyPassReverse /zabbixhost http://zabbixhost
Changing the sort order of hosts or triggers sends you to http://zabbixhost/zabbix/... instead - which is probably not reachable directly (if it was, you wouldn't be using mod_rewrite and mod_proxy).
The solution is to change this line in /usr/share/zabbix/include/func.inc.php from
$script = "javascript: redirect('".$url."');";
to
$script = "javascript: redirect('".basename($url)."');";
I don't think this will adversely affect anything else.
Without the above you have to manually amend the link from http://zabbixhost/zabbix/... to http://rewitehost/zabbixhost/zabbix/... in your browser. At the moment I'm making this change manually with each new release however if someone can put this change into the source it would be appreciated.
Thank you kindly
- is duplicated by
-
ZBXNEXT-1741 Next Page Link for item.php is not relative
- Closed
-
ZBX-6799 Wrong URL link in paging
- Closed
-
ZBX-3174 Some frontend pages don't load through a reverse proxy
- Closed
-
ZBX-5870 items.php uses wrong pagination link
- Closed
-
ZBX-6618 Bad links in webui / use $_SERVER['HTTP_HOST'] or $ZBX_SERVER_NAME instead of $_SERVER['SERVER_NAME']
- Closed
-
ZBX-6704 Frontend should not use absolute URLs
- Closed
-
ZBX-6766 Incorrect URL at web-interface
- Closed