Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-4986

multiple pages don't work properly through reverse proxy

XMLWordPrintable

      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

            Unassigned Unassigned
            hairyairey John Airey
            Votes:
            9 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: