Jump to content



Photo

nginx ruTorrent config - Help me please! :D

rutorrent linux nginx

  • Please log in to reply
1 reply to this topic

#1 Phixion

Phixion

    Neowinian

  • Joined: 13-January 06
  • Location: England
  • OS: Windows 7

Posted 29 November 2013 - 18:15

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.




#2 SarK0Y

SarK0Y

    Neowinian

  • Joined: 02-December 13

Posted 03 December 2013 - 20:51

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





Click here to login or here to register to remove this ad, it's free!