Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name test.innocence.pl;
- access_log /var/log/nginx/test.innocence.pl.access.log;
- rewrite ^(.*) https://$server_name$1 permanent;
- }
- server {
- listen 443;
- server_name test.innocence.pl;
- ssl on;
- ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
- ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
- ssl_session_timeout 5m;
- ssl_protocols SSLv2 SSLv3 TLSv1;
- ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
- ssl_prefer_server_ciphers on;
- error_page 404 http://404.innocence.pl;
- location ~ ^/(.*)/rutorrent/.?(.*\.php) {
- alias /home/system/www/rutorrent/$2;
- index index.php;
- fastcgi_index index.php;
- fastcgi_pass unix:/var/run/nginx/rutorrent/$1.php-fpm.socket;
- fastcgi_param SCRIPT_FILENAME $2;
- fastcgi_param PATH_INFO $fastcgi_script_name;
- include fastcgi_params;
- }
- location ~ ^/(.*)/rutorrent {
- alias /home/system/www/rutorrent$2;
- index index.html;
- }
- location ~ ^/(.*)/download {
- alias /home/$1/rtorrent/completed/;
- autoindex on;
- include mime.types;
- types { }
- default_type application/octet-stream;
- }
- location ~ ^/(.*) {
- alias /home/$1/www/;
- index index.html index.htm;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement