Fronting Nagiox XI with Mod_Proxy
-
jzimmerman
- Posts: 20
- Joined: Thu Aug 08, 2013 8:17 pm
- Location: Portland, Oregon, U.S.A
- Contact:
Fronting Nagiox XI with Mod_Proxy
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.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Fronting Nagiox XI with Mod_Proxy
Do you have the correct values in Admin -> Manage System Config for:
Program URL:
External URL:
??
Maybe we are missing something...
Program URL:
External URL:
??
Maybe we are missing something...
-
jzimmerman
- Posts: 20
- Joined: Thu Aug 08, 2013 8:17 pm
- Location: Portland, Oregon, U.S.A
- Contact:
Re: Fronting Nagiox XI with Mod_Proxy
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....
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>
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Fronting Nagiox XI with Mod_Proxy
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.
I thought you were just mapping the IP/port.
-
jzimmerman
- Posts: 20
- Joined: Thu Aug 08, 2013 8:17 pm
- Location: Portland, Oregon, U.S.A
- Contact:
Re: Fronting Nagiox XI with Mod_Proxy
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
Alright. Let us know if you have any further issues.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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.