On 2015-03-26 07:16, Michael Pfeiffer wrote:
Or somebody has a working icingaweb2-nginx configuration and would be willing to share it?
Here's mine. It's not much more than the output of "/opt/icingaweb2/bin/icingacli setup config webserver nginx" with icingaweb2 installed in /opt/icingaweb2 on a Linux system.
/etc/nginix/sites-enabled/monitor.lan: server { listen 10.10.10.13:443 ssl default_server; root /var/www/html; index index.php index.html index.htm index.nginx-debian.html; server_name monitor.lan; ssl_certificate ssl/monitor.lan/server.crt; ssl_certificate_key ssl/monitor.lan/server.key; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers HIGH:!aNULL:!MD5; location / { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. try_files $uri $uri/ =404; } location ~ ^/icingaweb2/index\.php(.*)$ { fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; include fastcgi_params; fastcgi_param SCRIPT_FILENAME /opt/icingaweb2/public/index.php; fastcgi_param ICINGAWEB_CONFIGDIR /etc/icingaweb2; fastcgi_param REMOTE_USER $remote_user; } location ~ ^/icingaweb2(.+)? { alias /opt/icingaweb2/public; index index.php; try_files $1 $uri $uri/ /icingaweb2/index.php$is_args$args; } } _______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users