Ad Widget

Collapse

Broken behavior when accessing by reverse proxy

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • skogan
    Member
    • Nov 2007
    • 70

    #1

    Broken behavior when accessing by reverse proxy

    Hi.

    I have just set up a new Zabbix 1.8.4 installation and because of the local needs, needed to access it by reverse proxy. Unfortunately, some links in Zabbix frontend are not safe for that - specifically anything that is loaded through Javascript like graphs, fullscreen icons, etc.

    I traced the problem to the Curl class member function "getUrl" - the function returns an absolute address. Modifying the function to return path only solved the issue.

    My question is: is there a specific reason why this function returns an absolute address? Will my modification break anything?
    Last edited by skogan; 08-03-2011, 20:43.
  • JBo
    Senior Member
    • Jan 2011
    • 310

    #2
    Hi,

    It has already been reported: http://www.zabbix.com/forum/showthread.php?t=19791

    and a bug opened : https://support.zabbix.com/browse/ZBX-3174

    If your reverse proxy is Apache, you can add
    Code:
    ProxyPreserveHost On
    in proxy configuration (not zabbix server).

    With this configuration, I don't need to patch Zabbix PHP code to access it via the reverse proxy.

    Regards,
    JBo

    Comment

    Working...