Ad Widget

Collapse

Using an existing Apache as proxy to Zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • acasari
    Junior Member
    • Jan 2014
    • 11

    #1

    Using an existing Apache as proxy to Zabbix

    I have configured an Apache as web proxy to other servers, like Jira, etc.
    How can configure this server to act as a web proxy to Zabbix?

    Thanks in advance.
  • EnigmA-X
    Senior Member
    Zabbix Certified Specialist
    • Oct 2010
    • 116

    #2
    It's not very clear what you are asking here. Can you please be more precise? Do you want to use Apache as a reverse proxy?

    Comment

    • acasari
      Junior Member
      • Jan 2014
      • 11

      #3
      Exactly.
      I installed all zabbix components in a box and now I want to access from Internet, for that I need to use an existing apache that is open to the internet.

      Comment

      • EnigmA-X
        Senior Member
        Zabbix Certified Specialist
        • Oct 2010
        • 116

        #4
        For all those people who find it more convenient to bother you with their question rather than to Google it for themselves.


        If you have more Zabbix specific questions, feel free to share

        Comment

        • steveboyson
          Senior Member
          • Jul 2013
          • 582

          #5
          You have to change at least: (in /usr/share/zabbix or whereever you placed your frontend files)

          ./include/html.inc.php
          ./include/func.inc.php
          ./include/page_header.php

          and find all occurences of "$url->getUrl()" and change these to "basename($url->getUrl())"

          Zabbix' default install is not nice to reverse proxies.
          If not changed, several links (go to "print" and then try to go back with utilizing the provided links) are broken.

          Comment

          • steveboyson
            Senior Member
            • Jul 2013
            • 582

            #6
            Also:
            search for "$req->getUrl()" and replace with " basename($req->getUrl())"

            Comment

            • EnigmA-X
              Senior Member
              Zabbix Certified Specialist
              • Oct 2010
              • 116

              #7
              No, this should have been fixed by ZBX-4986

              If it still doesn't work with the current 2.2-release, this post might help as well. However, I don't think it is needed.

              Comment

              • steveboyson
                Senior Member
                • Jul 2013
                • 582

                #8
                Don't know for 2.2.x, but in 2.0.10 it still seems to be needed (my own experience).

                Comment

                • EnigmA-X
                  Senior Member
                  Zabbix Certified Specialist
                  • Oct 2010
                  • 116

                  #9
                  From the bug report:

                  Fix Version/s:2.1.2, 2.2.0

                  Comment

                  Working...