Olivier Debré <tichodroma <at> free.fr> writes:
[...]
> I still have some minor 404 difficulties with icons and stylesheets, but
> managed to correct them with some dirty directory duplication.
With the help of jiri and others, I finally have a working config,
compatible with nagios-4.0.8p1-chroot and nagios-web-4.0.8p1-chroot packages
installed as-is, and a minor modification to /var/www/nagios/main.php.
httpd.conf excerpt:
lan_if = "em0"
loop_if = "lo0"
chroot "/var/www"
default type application/octet-stream.
server "nagios.siderlog-ra.fr" {
listen on $lan_if port 80
listen on $loop_if port 80
root "/"
directory index index.php
location "/cgi-bin/nagios/*.cgi" {
root { "/" }
fastcgi socket "/run/slowcgi.sock"
} # Fin du : location "/cgi-bin/nagios/*.cgi" {
location "*.php" {
root { "/nagios" }
fastcgi socket "/run/php-fpm.sock"
} # Fin du : location "*.php" {
}
diff /var/www/nagios/main.php.2016_03_01-11_00_12 /var/www/nagios/main.php
98c98
< $.get('cgi-bin/statusjson.cgi?query=programstatus',
function(d) {
---
> $.get('cgi-bin/nagios/statusjson.cgi?query=programstatus',
function(d) {
Thanks a lot everyone.
Olivier Debré