[icinga-users] http://my.ser.ver/icingaweb2 change?

Thomas Gelf thomas.gelf at netways.de
Mon Oct 22 13:15:33 CEST 2018


TL;DR: What Michael said.

Details:

There is nothing wrong with running a proxy in front of Icinga Web 2, in
fact I'm doing so all the times. But I'd advise against faking the URL
with the proxy, that always has the potential for lots of confusion.

Clone the shipped apache config file to a custom file, adjust the URLs,
disable the default one, enable your one. Icinga Web 2 will detect the
used URL and is fine with this.

I'm regularly doing so because any of the following reasons:

* customer wants to run Icinga Web 2 as https://monitoring.example.com/
(root url, no /icingaweb2 path)
* customer wants to run multiple Icinga Web 2 instances with different
configs on the same web server (different URLs plus SetEnv
ICINGAWEB_CONFIGDIR)
* customer is using a special web server module for authentication and
needs to adjust the config

You're right with your assumption that this would require you to adjust
your config when Icinga changes it's deployment strategy. Shouldn't
happen very often, and would then be mentioned in the Release Blogpost
and related Upgrading Notes.

Cheers,
Thomas

Am 22.10.2018 um 13:14 schrieb Michael Friedrich:
>
>
>> On 22. Oct 2018, at 12:09, Antony Stone <Antony.Stone at icinga.open.source.it> wrote:
>>
>> Hi.
>>
>> I'm wondering what is the best / recommended way to change "icingaweb2" in the
>> standard URL for accessing the Icinga web portal from a browser.
>>
>> So, instead of http://my.ser.ver/icingaweb2/ I'd like to have something like
>> http://my.ser.ver/status/
>>
>> I can see where to change this in the Apache config file, but there are clearly
>> some "/icingaweb2/" paths embedded into the PHP code under
>> /usr/share/icingaweb2, so I'm wondering:
>
> Where exactly?
>
> I’ve seen many installations of Icinga Web 2 just with ‘/‘ instead of ‘/icingaweb2’. The main configuration works with a VHost too, you’d only need to ensure that the RewriteBase is set to ‘/‘ and not ‘/icingaweb2’.
>
> Check here for an example: https://icinga.com/docs/icingaweb2/latest/doc/20-Advanced-Topics/#virtualhost-configuration
>
> Cheers,
> Michael
>
> _______________________________________________
> icinga-users mailing list
> icinga-users at lists.icinga.org
> https://lists.icinga.org/mailman/listinfo/icinga-users
>

-- 
Thomas Gelf
Principal Consultant

NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nuernberg
Tel: +49 911 92885-0 | Fax: +49 911 92885-77
CEO: Julian Hein, Bernd Erk | AG Nuernberg HRB18461
http://www.netways.de | thomas.gelf at netways.de

** OSMC 2018 - November - osmc.de **
** OPEN SOURCE CAMP ON PUPPET - November - opensourcecamp.de **
** OSDC 2019 - May - osdc.de **
** Icinga as a Service - nws.netways.de **


More information about the icinga-users mailing list