Advertisement
Guest User

Untitled

a guest
Sep 12th, 2010
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name test.innocence.pl;
  4. access_log /var/log/nginx/test.innocence.pl.access.log;
  5. rewrite ^(.*) https://$server_name$1 permanent;
  6. }
  7.  
  8. server {
  9. listen 443;
  10. server_name test.innocence.pl;
  11.  
  12. ssl on;
  13. ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
  14. ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
  15.  
  16. ssl_session_timeout 5m;
  17.  
  18. ssl_protocols SSLv2 SSLv3 TLSv1;
  19. ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
  20. ssl_prefer_server_ciphers on;
  21.  
  22. error_page 404 http://404.innocence.pl;
  23.  
  24. location ~ ^/(.*)/rutorrent/.?(.*\.php) {
  25. alias /home/system/www/rutorrent/$2;
  26. index index.php;
  27. fastcgi_index index.php;
  28. fastcgi_pass unix:/var/run/nginx/rutorrent/$1.php-fpm.socket;
  29. fastcgi_param SCRIPT_FILENAME $2;
  30. fastcgi_param PATH_INFO $fastcgi_script_name;
  31. include fastcgi_params;
  32.  
  33. }
  34. location ~ ^/(.*)/rutorrent {
  35. alias /home/system/www/rutorrent$2;
  36. index index.html;
  37. }
  38. location ~ ^/(.*)/download {
  39. alias /home/$1/rtorrent/completed/;
  40. autoindex on;
  41. include mime.types;
  42. types { }
  43. default_type application/octet-stream;
  44.  
  45. }
  46. location ~ ^/(.*) {
  47. alias /home/$1/www/;
  48. index index.html index.htm;
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement