Page 1 of 1
Fronting Nagiox XI with Mod_Proxy
Posted: Wed May 21, 2014 6:25 pm
by jzimmerman
Is anyone using Apache with Mod_Proxy (or any other proxy for that matter) to front Nagios XI to the Internet? I've tried multiple configurations that work for me for other applications (Thruk being one) with no luck. I can login to XI, but the navigation on the left is collapsed and most of the components don't work. Basically I just get the menu at the top.
Re: Fronting Nagiox XI with Mod_Proxy
Posted: Thu May 22, 2014 8:17 am
by scottwilkerson
Do you have the correct values in Admin -> Manage System Config for:
Program URL:
External URL:
??
Maybe we are missing something...
Re: Fronting Nagiox XI with Mod_Proxy
Posted: Fri May 23, 2014 9:47 pm
by jzimmerman
As far as I know they are correct.
Program URL is
http://ipaddress/nagiosxi/
External URL is
https://subdomain.example.com/prefix-nagiosxi/
I can login and the navigation bar shows briefly then collapses.
Current apache config on the front end proxy snippet looks like this....
Code: Select all
ProxyPass /prefix-nagiosxi/ http://ipaddress/nagiosxi/
ProxyPassReverse /prefix-nagiosxi/ http://ipaddress/nagiosxi/
ProxyHTMLURLMap http://ipaddress/nagiosxi /prefix-nagiosxi/
<Location /prefix-nagiosxi/>
ProxyPassReverse /
SetOutputFilter proxy-html
ProxyHTMLURLMap http://ipaddress/nagiosxi /prefix-nagiosxi/
ProxyHTMLURLMap /nagiosxi /prefix-nagiosxi/
ProxyHTMLURLMap /nagiosxi /prefix-nagiosxi
RequestHeader unset Accept-Encoding
</Location>
Re: Fronting Nagiox XI with Mod_Proxy
Posted: Tue May 27, 2014 10:25 am
by scottwilkerson
Ohhh, You are changing the path too.... I actually don't believe that is going to work. The path is going to need to be the same for both internal and external calls/redirects etc.
I thought you were just mapping the IP/port.
Re: Fronting Nagiox XI with Mod_Proxy
Posted: Tue May 27, 2014 4:08 pm
by jzimmerman
Ah. My reason for wanting the prefix is because I have Nagios XI in multiple disjointed data centers. I'll see if I can rework it with subdomains distinguishing the XI installations rather than prefixes.
Re: Fronting Nagiox XI with Mod_Proxy
Posted: Tue May 27, 2014 5:08 pm
by abrist
jzimmerman wrote:Ah. My reason for wanting the prefix is because I have Nagios XI in multiple disjointed data centers. I'll see if I can rework it with subdomains distinguishing the XI installations rather than prefixes.
Alright. Let us know if you have any further issues.