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:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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-ID: 364630

Url: https://administrator.de/forum/nginx-fuer-icinga-web-2-konfigurieren-364630.html

Ausgedruckt am: 16.04.2025 um 16:04 Uhr

tomolpi
tomolpi 13.02.2018 um 17:28:45 Uhr
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?
honeybee
honeybee 14.02.2018 aktualisiert um 09:56:29 Uhr
Goto Top
nginx und Icinga scheint wohl nicht ganz einfach zu sein. Bin deshalb auf Apache umgestiegen. Trotzdem danke für die Antwort.
Dani
Dani 15.02.2018 um 19:53:31 Uhr
Goto Top
Moin,
den nginx würde als ReverseProxy für den Apache einrichten. Für den Performance Schub...


Gruß,
Dani