- Modifié
Hello les gens, je me suis mis en tete d'installer H5ai mais bon comme d'hab ça ne marche pas
J'ai fais comme sur le tuto, voila mon fichier rutorrent.conf
server {
listen 80 default_server;
listen 443 default_server ssl http2;
server_name _;
index index.html index.php;
charset utf-8;
client_max_body_size 10M;
ssl_certificate /etc/nginx/ssl/server.crt;
ssl_certificate_key /etc/nginx/ssl/server.key;
include /etc/nginx/conf.d/ciphers.conf;
access_log /var/log/nginx/rutorrent-access.log combined;
error_log /var/log/nginx/rutorrent-error.log error;
error_page 500 502 503 504 /50x.html;
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd";
root /var/www;
location = /favicon.ico {
access_log off;
log_not_found off;
}
location = /50x.html {
root /usr/share/nginx/html;
}
location ~ \.php$ {
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass unix:/var/run/php5-fpm.sock;
}
location ~* \.(jpg|jpeg|gif|css|png|js|map|woff|woff2|ttf|svg|eot)$ {
expires 30d;
access_log off;
}
location ~* \.(eot|ttf|woff|svg)$ {
add_header Acccess-Control-Allow-Origin *;
}
## Config accueil serveur ##
location ^~ / {
root /var/www/base;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
satisfy any;
allow all;
}
##reboot##
location ^~ /reboot {
root /var/www;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
auth_basic "Reboot";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_sky";
}
## Config rutorrent ##
location /rutorrent {
try_files $uri $uri/ /index.html;
}
location ~ ^/rutorrent/(conf|share)/(.+)$ {
deny all;
}
## Config munin ##
location /graph {
}
location /graph/img {
error_log /dev/null crit;
}
location /monitoring {
auth_basic "Monitoring";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_sky";
}
location ^~ /nginx_status {
stub_status on;
access_log off;
satisfy any;
allow 127.0.0.1;
deny all;
}
## Config seedbox-manager ##
location /seedbox-manager {
try_files /seedbox-manager/$uri /seedbox-manager/index.php$is_args$args;
}
## debut conf ratxabox ##
include /etc/nginx/ratxabox.d/*.conf;
## fin conf ratxabox ##
location ^~ /tardistart {
root /var/www;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
satisfy any;
allow all;
location ~ admin {
auth_basic "Utilisateur principal seedbox,TARDIStart Admin Page";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_sky";
deny all;
}
}
## Config utilisateurs ##
location /SKY {
include scgi_params;
scgi_pass 127.0.0.1:5001;
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_sky";
}
}
location ^~ /_h5ai {
root /var/www/base;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
#On appelle h5ai
index index.html index.php /_h5ai/server/php/index.php;
#On autorise le listing des fichiers
autoindex on;
#Facultatif on utilise l'auth de rutorrent
auth_basic _h5ai;
#auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_user";
}
sauf que quand je dois relancer nginx j'ai ça ---->
Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalc tl -xn' for details.
je vais donc voir mes logs et j'ai ceci --->
"location" directive is not allowed here in /etc/nginx/sites-enabled/rutorrent.conf:139
Je vois bien que c'est "location" qui pose probleme mais meme en ayant parcouru tout le topic sur h5ai je reste coincé merci d'avance les amis !