Friday, April 09, 2021

Re: icinga-web2 & httpd(8)

Sorry, I meant my version of the ports diff containing your httpd.conf snippet.
I did not mean to imply that I had come up with the actual config.
It has been a long day...

On 9 April 2021 19:44:34 CEST, Florian Obser <florian@openbsd.org> wrote:
>On Fri, Apr 09, 2021 at 07:32:14PM +0200, Michael Wilson wrote:
>>
>> > Am 09.04.2021 um 18:55 schrieb Florian Obser <florian@openbsd.org>:
>> >
>> > This is awkward, it basically takes over the (virtual) server, so
>it's
>> > not a snipped that you can just add to your existing config.
>>
>> I agree. I didn't really had this in mind while testing the config. I
>just modified it slightly so there's no top level root declaration:
>
>Interesting, I thought I had tried this variation and it did not work
>for me.
>
>For now I have commited my version because ports lock is upon us.
>
>I'll try to find some time next week to give this a spin, maybe we can
>sneak that in for 6.9 still.
>
>Thank you for all your work on this, much appreciated.
>
>>
>> location "/icingaweb2/*.php*" {
>> root "/icinga-web2/public/"
>> request strip 1
>> fastcgi socket "/run/php-fpm-icingaweb2.sock"
>> fastcgi param ICINGAWEB_CONFIGDIR "/etc/icingaweb2"
>> }
>>
>> location found "/icingaweb2/*" {
>> root "/icinga-web2/public/"
>> request strip 1
>> }
>>
>> location not found "/icingaweb2/*" {
>> root "/icinga-web2/public/"
>> request rewrite "/icingaweb2/index.php?$QUERY_STRING"
>> }
>>
>> The trick just seems to be to first match for existing files and then
>handle the 'not found' ones. Seems to work so far, at least I didn't
>notice any 404s or empty responses.

--
Sent from a mobile device. Please excuse poor formating.

No comments:

Post a Comment