mail 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. server {
  2. listen 80;
  3. server_name mail.especificosba.com.ar;
  4. rewrite ^ https://mail.especificosba.com.ar permanent;
  5. }
  6. server {
  7. listen 443 ssl; ## listen for ipv4; this line is default and implied
  8. include ssl;
  9. #root /usr/share/apache2/roundcubemail/;
  10. root /var/www/r/;
  11. index index.php;
  12. server_name mail.*;
  13. location ~ \.php($|/)
  14. {
  15. include fastcgi_params;
  16. fastcgi_pass unix:/var/run/php5-fpm.sock;
  17. fastcgi_index index.php;
  18. fastcgi_keep_conn on;
  19. fastcgi_split_path_info ^(.+\.php)(.*)$;
  20. fastcgi_param PATH_INFO $fastcgi_path_info;
  21. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  22. fastcgi_param SERVER_NAME $http_host;
  23. fastcgi_ignore_client_abort on;
  24. fastcgi_intercept_errors off;
  25. }
  26. location / {
  27. # First attempt to serve request as file, then
  28. # as directory, then fall back to displaying a 404.
  29. try_files $uri $uri/ /index.html;
  30. # Uncomment to enable naxsi on this location
  31. # include /etc/nginx/naxsi.rules
  32. }
  33. # deny access to .htaccess files, if Apache's document root
  34. # concurs with nginx's one
  35. #
  36. location ~ /\.ht {
  37. deny all;
  38. }
  39. }