Bonsoir,
tout fonctionnait super bien et après un plantage système, le mot de passe n'est plus demandé lors de l'accès par le Web UI...
vhost default:
#
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
##
# Default server configuration
#
server {
listen 80 default_server;
listen [::]:80 default_server;
# autoindex off;
# SSL configuration
#
# listen 443 ssl default_server;
# listen [::]:443 ssl default_server;
#
# Note: You should disable gzip for SSL traffic.
# See: https://bugs.debian.org/773332
#
# Read up on ssl_ciphers to ensure a secure configuration.
# See: https://bugs.debian.org/765782
#
# Self signed certs generated by the ssl-cert package
# Don't use them in a production server!
#
# include snippets/snakeoil.conf;
# /usr/share/nginx/html
root /var/www/html;
# Add index.php to the list if you are using PHP
index index.html index.nginx-debian.html index.php;
server_name _;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
try_files $uri =404;
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;
# With php5-fpm:
#fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_index index.php;
fastcgi_buffer_size 128k;
fastcgi_buffers 8192 4k;
fastcgi_busy_buffers_size 256k;
fastcgi_max_temp_file_size 0;
include fastcgi_params;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
location ~ /\.ht {
deny all;
}
location /phpmyadmin {
allow MONIP;
deny all;
index index.php index.html index.htm;
}
#hotlinking
location ~* \.(gif|png|jpe?g|css|pdf|zip|gz|js|mp3|m4a|mp4|mov|divx|avi|wma?v?|wmp|swf|flv|docx?|xlsx?|pptx?|vbs|rtf|asf?x?|odt|ods|odp|odg|odb)$ {
expires 7d;
add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
# prevent hotlink
valid_referers none blocked 195.XXX.XXX.XX ~($host);
if ($invalid_referer) {
rewrite (.*) /images/access-denied.png redirect;
# drop the 'redirect' flag for redirect without URL change (internal rewrite)
}
}
# stop hotlink loop
location = /images/access-denied.png { }
}
rutorrent.conf:
server {
listen 80;
listen 443 default_server ssl;
server_name _;
charset utf-8;
index index.html index.php;
client_max_body_size 10G;
fastcgi_buffers 64 4K;
ssl_certificate /etc/nginx/ssl/server.crt;
ssl_certificate_key /etc/nginx/ssl/server.key;
ssl_dhparam /etc/nginx/ssl/dhparam.pem;
access_log /var/log/nginx/rutorrent-access.log combined;
error_log /var/log/nginx/rutorrent-error.log;
error_page 500 502 503 504 /50x.html;
location = /50x.html { root /var/www/html; }
auth_basic "Seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_serveur";
location = /favicon.ico {
access_log off;
log_not_found off;
}
location /serveur {
include scgi_params;
scgi_pass 127.0.0.1:5000;
auth_basic "Seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_serveur";
}
#location / {
location ^~ /rutorrent {
root /var/www/html;
index index.php index.html index.htm;
#include /etc/nginx/conf.d/php.conf;
#include /etc/nginx/conf.d/cache.conf;
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# include fastcgi_params;
include fastcgi.conf;
}
location ~ /\.svn {
deny all;
}
location ~ /\.ht {
deny all;
}
}
location ^~ /rutorrent/conf/ {
deny all;
}
location ^~ /rutorrent/share/ {
deny all;
}
}
nginx.conf
user www-data;
worker_processes auto;
worker_priority -10; # priorite donne a nginx par le systeme
worker_rlimit_nofile 20480; #50000
pid /run/nginx.pid;
events {
worker_connections 1024; #5120
use epoll;
# multi_accept on;
}
http {
charset utf-8;
max_ranges 0;
source_charset utf-8;
connection_pool_size 256;
request_pool_size 4k;
## Start: Size Limits & Buffer Overflows ##
client_body_buffer_size 128K;
client_header_buffer_size 3m;
client_max_body_size 128m;
large_client_header_buffers 4 256k;
## END: Size Limits & Buffer Overflows ##
keepalive_requests 100000;
server_tokens off;
#server_names_hash_bucket_size 64;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
client_body_timeout 10;
client_header_timeout 10;
keepalive_timeout 5 5;
send_timeout 10;
output_buffers 1 32k;
postpone_output 1460;
types_hash_max_size 2048;
ignore_invalid_headers on;
recursive_error_pages on;
server_names_hash_max_size 10240;
server_names_hash_bucket_size 1024;
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log warn;
gzip on;
gzip_buffers 16 8k;
gzip_static on;
gzip_http_version 1.1;
gzip_comp_level 9;
gzip_min_length 256;
gzip_proxied any;
gzip_vary on;
gzip_types
application/atom+xml
application/javascript
application/json
application/rss+xml
application/vnd.ms-fontobject
application/x-font-ttf
application/x-web-app-manifest+json
application/xhtml+xml
application/xml
font/opentype
image/svg+xml
image/x-icon
text/css
text/plain
text/x-component;
gzip_disable "MSIE [1-6].(?!.*SV1)";
client_body_in_file_only on;
log_format bytes_log "$msec $bytes_sent .";
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
limit_conn_zone $binary_remote_addr zone=conn_limit_per_ip:10m;
limit_req_zone $binary_remote_addr zone=req_limit_per_ip:10m rate=5r/s;
server {
limit_conn conn_limit_per_ip 10;
limit_req zone=req_limit_per_ip burst=10 nodelay;
}
}
cat /etc/nginx/passwd/rutorrent_passwd_serveur
serveur:{SHA}B7cdf+gkdThDjeiDfgx+a0=
je n'ai rien dans les logs.
J'ai tenté de redémarrer nginx et fpm mais rien.
Cordialement,