buenosairesestetica.com.ar 1023 B

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