Hallo!
Ich habe einen Nginx-Webserver konfiguriert für den Betrieb von Icingaweb2. Leider funktioniert der Aufruf der Webseite nicht; im Nginx-Error-Log finde ich diese Fehlermeldung:
[error] 25184#25184: *2805 open() "/usr/share/icingaweb2/publicindex.php" failed (2: No such file or directory)
Die Fehlermeldung ist eindeutig, und es ist auch klar, dass eigentlich die Datei /usr/share/icingaweb2/public/index.php zu verwenden ist.
Ich kann aber nicht ermitteln, warum der Fehler hier auftritt. Meine vhost-Konfiguration sieht wie folgt aus:
server { listen 127.0.0.1:81; location ~ \.cgi$ { root /usr/lib/cgi-bin; include /etc/nginx/fastcgi_params; fastcgi_pass unix:/var/run/fcgiwrap.socket; } } server { listen 80; listen [::]:80; server_name monitor.<mydomain>.de; server_tokens off; root /usr/share/icingaweb2/public; client_max_body_size 25m; index index.php; error_page 502 /redir.html; location ~ /(\.ht) { deny all; return 404; } location = /favicon.ico { log_not_found off; access_log off; } 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; } location / { try_files $uri $uri/ index.php; } location ~ ^/index\.php(.*)$ { fastcgi_index index.php; include fastcgi_params; #include /etc/nginx/fastcgi_params; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php-moni-fpm.sock; fastcgi_param SCRIPT_FILENAME /usr/share/icingaweb2/public/index.php; fastcgi_param ICINGAWEB_CONFIGDIR /etc/icingaweb2; fastcgi_param REMOTE_USER $remote_user; } }
Wo ist der Fehler in der Konfiguration, was zum Aufruf von /usr/share/icingaweb2/publicindex.php führt?
THX