Saturday, April 03, 2021

Re: icinga-web2 & httpd(8)

Nice this works for me, too.
Thank you very much.

sthen: OK to add it to the README?

diff --git Makefile Makefile
index d1ed050fb51..414fa1a1f11 100644
--- Makefile
+++ Makefile
@@ -5,7 +5,7 @@ COMMENT = next-generation web UI for icinga
GH_ACCOUNT = Icinga
GH_PROJECT = icingaweb2
GH_TAGNAME = v2.8.2
-REVISION = 7
+REVISION = 8
PKGNAME = icinga-web2-${GH_TAGNAME:S/v//}

MAINTAINER = Stuart Henderson <stu.ports@spacehopper.org>
diff --git pkg/README pkg/README
index d6d99758ec0..dc6c13d2ee5 100644
--- pkg/README
+++ pkg/README
@@ -61,6 +61,20 @@ after adding), using the above php-fpm section:
try_files $1 $uri $uri/ /icingaweb2/index.php$is_args$args;
}

+An example for httpd (remember to "rcctl reload httpd" after adding),
+using the above php-fpm section:
+
+ root "/icinga-web2/public"
+ directory index "index.php"
+ location "*.php*" {
+ fastcgi socket "/run/php-fpm-icingaweb2.sock"
+ fastcgi param ICINGAWEB_CONFIGDIR "/etc/icingaweb2"
+ }
+
+ location not found "*" {
+ request rewrite "/index.php?$QUERY_STRING"
+ }
+
For Apache httpd, configuration files are provided in
${PREFIX}/conf/modules.sample that can be symlinked to ${PREFIX}/conf/modules.


On Fri, Apr 02, 2021 at 09:23:03PM +0200, Michael Wilson wrote:
> This did the trick for me:
>
> server "default" {
> listen on * port 80
>
> root "/icinga-web2/public"
>
> directory index "index.php"
>
> location "*.php*" {
> fastcgi socket "/run/php-fpm-icingaweb2.sock"
> fastcgi param ICINGAWEB_CONFIGDIR "/etc/icingaweb2"
> }
>
>
> location not found "*" {
> request rewrite "/index.php?$QUERY_STRING"
> }
> }
>
> > Am 25.03.2021 um 10:13 schrieb Florian Obser <florian@openbsd.org>:
> >
> > Did anyone get icinga-web2 working with httpd(8)?
> > If so please share a config snippet.
> >
> > Thanks,
> > Florian
> >
> > --
> > I'm not entirely sure you are real.
> >
>

--
I'm not entirely sure you are real.

No comments:

Post a Comment