upstream rufy_server {
server unix:/var/www/RuFy/run/gunicorn.sock fail_timeout=0;
}
server {
listen 80 default_server;
listen 443 default_server ssl http2;
server_name www.ndd.com;
index index.html index.php;
charset utf-8;
client_max_body_size 10M;
ssl_certificate /etc/letsencrypt/live/www.myplex.ovh/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/www.myplex.ovh/privkey.pem;
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;
location = /50x.html { root /usr/share/nginx/html; }
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd";
location = /favicon.ico {
access_log off;
log_not_found off;
}
## début 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;
}
## fin config accueil serveur ##
## début config rutorrent ##
location ^~ /rutorrent {
root /var/www;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
location ~ /\.svn {
deny all;
}
location ~ /\.ht {
deny all;
}
}
location ^~ /rutorrent/conf/ {
deny all;
}
location ^~ /rutorrent/share/ {
deny all;
}
## fin config rutorrent ##
## début config munin ##
location ^~ /graph {
root /var/www;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
}
location ^~ /graph/img {
root /var/www;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
error_log /dev/null crit;
}
location ^~ /monitoring {
root /var/www;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
}
## fin config munin ##
## début config seedbox-manager ##
location ^~ /seedbox-manager {
alias /var/www/seedbox-manager/public;
include /etc/nginx/conf.d/php-manager.conf;
include /etc/nginx/conf.d/cache.conf;
}
## fin config seedbox-manager ##
## config utilisateurs ##
location /ALEX {
include scgi_params;
scgi_pass 127.0.0.1:5001; #ou socket : unix:/home/username/.session/username.socket
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_alex";
}
}
## début config rufy ##
location ^~/rufy/static {
satisfy any;
allow all;
alias /var/www/RuFy/static/;
}
location ^~/rufy/media {
satisfy any;
allow all;
alias /var/www/RuFy/media/;
}
location ^~/rufy {
satisfy any;
allow all;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
if (!-f $request_filename) {
proxy_pass http://127.0.0.1:8000;
break;
}
}
## fin config rufy ##
Mais j'ai une erreur nginx : oct. 02 21:08:43 ns302787.ip-94-23-202.eu nginx[9879]: nginx: [emerg] "location" directive is not allowed here in /etc/nginx/sites-enabled/rutorrent.conf:116
oct. 02 21:08:43 ns302787.ip-94-23-202.eu systemd[1]: nginx.service: control process exited, code=exited status=1
oct. 02 21:08:43 ns302787.ip-94-23-202.eu systemd[1]: Failed to start LSB: Stop/start nginx.
Merci à vous pour votre aide.++