Salut all,
j'ai procédé à la mise à jour de nginx (1.8.0) et plus moyen d'accéder à aucun vhost (cacti, sourcebans, wiki et phpmyadmin)....
Le Vhost default:
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /var/www/html;
index index.html index.htm index.php index.nginx-debian.html;
# Make site accessible from http://localhost/
server_name _;
location / {
try_files $uri $uri/ =404;
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
include snippets/fastcgi-php.conf;
# fastcgi_split_path_info ^(.+\.php)(/.+)$;
# # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
#
# # With php5-cgi alone:
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# fastcgi_index index.php;
# include fastcgi_params;
}
}
access.log:
192.168.0.2 - - [25/Aug/2015:16:36:02 +0200] "GET /cacti/ HTTP/1.1" 403 135 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0"
192.168.0.2 - - [25/Aug/2015:16:36:06 +0200] "GET /phpmyadmin HTTP/1.1" 404 136 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0"
error.log:
2015/08/25 16:36:02 [error] 26008#26008: *1 directory index of "/usr/share/nginx/html/cacti/" is forbidden, client: 192.168.0.2, server: 192.168.0.21, request: "GET /cacti/ HTTP/1.1", host: "192.168.0.21"
2015/08/25 16:36:06 [error] 26008#26008: *1 open() "/usr/share/nginx/html/phpmyadmin" failed (2: No such file or directory), client: 192.168.0.2, server: 192.168.0.21, request: "GET /phpmyadmin HTTP/1.1", host: "192.168.0.21"
ce qui me choque, c'est le document root sur
/usr/share/nginx/html/ et non comme défini dans mes vhosts dans
/var/www/html.
J'ai tenté de mettre www-data pour le dossier /var/www/html en ayant vidé le cache de Firefox, aucun changement...
Par contre l'installation de owncloud passe sans problème lol....
edit eureka: je n'ai pas dormis mais j'ai trouvé, c'était un vhost qui foutait le bordel, pourquoi ? je ne sais pas vu que tout fonctionnait.... bref c'est résolu, je suis content ^^
Cordialement,