ventura.com.ar 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. server {
  2. listen 80; ## listen for ipv4; this line is default and implied
  3. listen 443 ssl; ## listen for ipv4; this line is default and implied
  4. ssl_certificate /etc/ssl/certs/iRedMail_CA.pem;
  5. ssl_certificate_key /etc/ssl/private/iRedMail.key;
  6. root /var/www/davidventura/;
  7. index index.php index.html index.htm;
  8. server_name davidventura.com.ar;
  9. location / {
  10. # First attempt to serve request as file, then
  11. # as directory, then fall back to displaying a 404.
  12. try_files $uri $uri/ /index.html;
  13. # Uncomment to enable naxsi on this location
  14. # include /etc/nginx/naxsi.rules
  15. }
  16. location ~ \.php$ {
  17. try_files $uri =404;
  18. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  19. # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
  20. fastcgi_pass unix:/var/run/php5-fpm.sock;
  21. fastcgi_index index.php;
  22. include fastcgi_params;
  23. fastcgi_param PATH_INFO $fastcgi_path_info;
  24. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  25. }
  26. # deny access to .htaccess files, if Apache's document root
  27. # concurs with nginx's one
  28. #
  29. location ~ /\.ht {
  30. deny all;
  31. }
  32. }