Hey guys, I am trying to correctly configure my nginx ruTorrent config file. I don't have much experience with nginx so would appreciate some wise eyes
This is what I currently have, I want access via https only; this config is working fine but I'd like to know whether I have got anything wrong or need to change anything for security reasons.
Code:
server {
listen 443;
root /var/www;
server_name _;
auth_basic "ruTorrent Login";
auth_basic_user_file "/etc/nginx/ssl/.htpasswd";
ssl on;
ssl_certificate /etc/nginx/ssl/crt.pem;
ssl_certificate_key /etc/nginx/ssl/key.pem;
location / {
root /var/www;
index index.php index.html index.htm;
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
location ~ /\.ht {
deny all;
}
}
Many thanks in advance.
This is what I currently have, I want access via https only; this config is working fine but I'd like to know whether I have got anything wrong or need to change anything for security reasons.
Code:
server {
listen 443;
root /var/www;
server_name _;
auth_basic "ruTorrent Login";
auth_basic_user_file "/etc/nginx/ssl/.htpasswd";
ssl on;
ssl_certificate /etc/nginx/ssl/crt.pem;
ssl_certificate_key /etc/nginx/ssl/key.pem;
location / {
root /var/www;
index index.php index.html index.htm;
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
location ~ /\.ht {
deny all;
}
}
Many thanks in advance.