honeybee
Goto Top

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:
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;
    }
}

Content-Key: 364630

Url: https://administrator.de/contentid/364630

Printed on: May 7, 2024 at 08:05 o'clock

Member: tomolpi
tomolpi Feb 13, 2018 at 16:28:45 (UTC)
Goto Top
Du kannst deine nginx-Config checken lassen.

Ich meine das ging mit nginx -t

Dann gibt er dir vielleicht eine Zeile aus, wo der Fehler steckt... Steht denn noch was andres im Log drin?
Member: honeybee
honeybee Feb 14, 2018 updated at 08:56:29 (UTC)
Goto Top
nginx und Icinga scheint wohl nicht ganz einfach zu sein. Bin deshalb auf Apache umgestiegen. Trotzdem danke für die Antwort.
Member: Dani
Dani Feb 15, 2018 at 18:53:31 (UTC)
Goto Top
Moin,
den nginx würde als ReverseProxy für den Apache einrichten. Für den Performance Schub...


Gruß,
Dani