Advertisement
Guest User

Untitled

a guest
Apr 29th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. server {
  2. server_name mail.ferienwohnung-sander.eu;
  3. listen 80;
  4. listen 443 ssl;
  5. #ssl on;
  6. ssl_certificate /etc/ssl/mail.ferienwohnung-sander.eu.cer;
  7. ssl_certificate_key /etc/ssl/mail.ferienwohnung-sander.eu.key;
  8. # Einige Optionen nach Bettercrypto
  9. ssl_prefer_server_ciphers on;
  10. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  11. ssl_ciphers 'EDH+CAMELLIA:EDH+aRSA:EECDH+aRSA+AESGCM:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH:+CAMELLIA256:+AES256:+CAMELLIA128:+AES128:+SSLv3:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!DSS:!RC4:!SEED:!ECDSA:CAMELLIA256-SHA:AES256-SHA:CAMELLIA128-SHA:AES128-SHA';
  12. add_header Strict-Transport-Security max-age=15768000;
  13. ssl_session_cache shared:SSL:5m;
  14. ssl_session_timeout 30m;
  15. client_max_body_size 0;
  16. root /var/www/html;
  17. index index.html index.htm index.php;
  18. location / {
  19. try_files $uri $uri/ index.php;
  20. }
  21. # Zugriff auf Roundcube Logs, sollte von außerhalb nicht möglich sein
  22. location ~ ^/webmail/logs/ {
  23. deny all;
  24. }
  25. location ~ \.php$ {
  26. include snippets/fastcgi-php.conf;
  27. fastcgi_read_timeout 630;
  28. fastcgi_keep_conn on;
  29. # Dient ViMbAdmin, da Nginx keine htaccess-Datei einlesen wird
  30. fastcgi_param APP_ENV production;
  31. fastcgi_pass unix:/var/run/php5-fpm.sock;
  32. }
  33. # Können sensible Daten enthalten, Nginx verwertet sie nicht
  34. location ~ /\.ht {
  35. deny all;
  36. }
  37. location = /favicon.ico {
  38. log_not_found off;
  39. access_log off;
  40. }
  41. # Keine Notwendigkeit
  42. location = /robots.txt {
  43. deny all;
  44. log_not_found off;
  45. access_log off;
  46. }
  47. location /admin {
  48. # Rewrite fix für ViMbAdmin
  49. try_files $uri $uri/ /admin/index.php?$args;
  50. }
  51.  
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement