icingaweb2 and nginx are in jail

Jacques Foucry jacques+freebsd at foucry.net
Sun Apr 5 09:39:28 UTC 2020


Le mercredi 01 avr. 2020 à 18:19:14 (+0200), Jacques Foucry à écrit:
> Hello folks,
> 
> I try since now 2 weeks to make working icingaweb2 in a jail with nginx as
> http server and php-fpm but it don't work.

Seems nobody can help me… That's life.

> 
> The log is pretty clear:
> `/usr/local/www/icingaweb2/public/css/icinga.min.css`
> 
> which is true there is no .css in ちhis directory bur .less kind of css.
> icingaweb2 *SHOULD* create the correct ccs _on the fly_.
> 
> I cannot figure whatśs going wrong.
> 
> In `/usr/local/etc/icingweb2` I only have the setup.token file.
> 
> The ngnix configuration was made with the icingacli utility:
> 
> ```
>     server {
>         listen          80 default_server;
>         listen          [::]:80;
>         server_name     icinga.example.com
>         root            /usr/local/www/icingaweb2/public;
>         index           index.php;
>         charset         utf-8;
>         default_type    application/octet-stream;
>         access_log      /var/log/nginx/icinga.access.log;
>         error_log       /var/log/nginx/icinga.error.log;
> 
>         location ~ ^/icingaweb2/index\.php(.*)$ {
>             fastcgi_pass 127.0.1.29:9000;
>             try_files       $uri /index.php =404;
>             #fastcgi_pass    unix:/var/run/php-fpm.sock;
>             fastcgi_index index.php;
>             include fastcgi_params;
>             fastcgi_param SCRIPT_FILENAME /usr/local/www/icingaweb2/public/index.php;
>             fastcgi_param ICINGAWEB_CONFIGDIR /usr/local/etc/icingaweb2;
>             fastcgi_param REMOTE_USER $remote_user;
>         }
> 
>         location ~ ^/icingaweb2(.+)? {
>             alias /usr/local/www/icingaweb2/public;
>             index index.php;
>             try_files $1 $uri $uri/ /icingaweb2/index.php$is_args$args;
>         }
> 
>     }
> ```
> 
> Note: 127.0.20.1 is the loopback ip for this jail
> 
> The SSL part is done by the host
> 
> PHP-FPM run:
> www      php-fpm    94221 6  tcp4   127.0.1.20:9000       *:*
> www      php-fpm    94220 6  tcp4   127.0.1.20:9000       *:*
> root     php-fpm    94219 8  tcp4   127.0.1.20:9000       *:*
> 
> So, if someone could help me, give me some advice, it will be really
> appreciate.
> 
> -- 
> 
> Jacques Foucry
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
---end quoted text---

-- 
Jacques Foucry


More information about the freebsd-questions mailing list