Nginx für Icinga Web 2 konfigurieren
Hallo,
ich versuche gerade, nginx für Icinga Web 2 zu konfigurieren (mithilfe dieser Anleitung) und bin leider wegen dieser Fehlermeldung nicht in der Lage, den Dienst von nginx zu starten:
Vielleicht kann mir jemand sagen, woran es liegen könnte. Wir betreiben keinen Proxyserver oder sowas ähnliches.
So sieht die Konfiguration aus:
ich versuche gerade, nginx für Icinga Web 2 zu konfigurieren (mithilfe dieser Anleitung) und bin leider wegen dieser Fehlermeldung nicht in der Lage, den Dienst von nginx zu starten:
Failed to start a high performance web server and a reverse proxy server.
Vielleicht kann mir jemand sagen, woran es liegen könnte. Wir betreiben keinen Proxyserver oder sowas ähnliches.
So sieht die Konfiguration aus:
server {
listen 80;
server_name hostname.domain.de;
index index.php;
root /usr/share/icingaweb2/public;
error_log /var/log/nginx/error.log;
}
location = /favicon.ico {
log_not_found off;
access_log off;
expires max;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ /\. {
deny all;
access_log off;
log_not_found off;
}
location ~ \..*/.*\.php$ {
return 403;
}
if (!-d $request_filename) {
rewrite ^/(.+)/$ /$1 permanent;
}
location / {
try_files $1 $uri $uri/ /index.php$is_args$args;
}
location ~ ^/index\.php(.*)$ {
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_param SCRIPT_FILENAME /usr/share/icingaweb2/public/index.php;
fastcgi_param ICINGAWEB_CONFIGDIR /etc/icingaweb2;
fastcgi_param REMOTE_USER $remote_user;
}
}
Please also mark the comments that contributed to the solution of the article
Content-Key: 364630
Url: https://administrator.de/contentid/364630
Printed on: May 7, 2024 at 08:05 o'clock
3 Comments
Latest comment