Icinga Web with Nginx

icingaweb2
nginx

(Michael Friedrich) #1

Preparations

Run the setup CLI module command to generate a fresh Nginx configuration for your given paths.

Example

icingacli setup config webserver nginx --document-root /usr/share/icingaweb2/public --config /etc/icingaweb2 --fpm-uri 127.0.0.1:9000

location ~ ^/icingaweb2/index\.php(.*)$ {
  fastcgi_pass 127.0.0.1:9000;
  fastcgi_index index.php;
  include fastcgi_params;
  fastcgi_param SCRIPT_FILENAME /usr/share/icingaweb2/public/index.php;
  fastcgi_param ICINGAWEB_CONFIGDIR /etc/icingaweb2;
  fastcgi_param REMOTE_USER $remote_user;
}

location ~ ^/icingaweb2(.+)? {
  alias /usr/share/icingaweb2/public;
  index index.php;
  try_files $1 $uri $uri/ /icingaweb2/index.php$is_args$args;
}

Resources and Hints

Your configuration

Please share your running configuration, e.g. with a VHost, TLS enabled or in proxy mode. Thanks in advance :heart: