Sign in to follow this  

nginx ruTorrent config - Help me please! :D

Recommended Posts

Phixion    7

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.

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.

Share this post

Link to post
Share on other sites
SarK0Y    36

Phixion, what kind of security reasons do you mean???

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.