site.conf (633B)
1 server { 2 listen 80; 3 server_name _; 4 5 root /var/www/html; 6 index index.php index.html index.htm; 7 8 # Existing location blocks 9 location / { 10 try_files $uri $uri/ /index.php?$query_string; 11 } 12 13 # Existing PHP location block 14 location ~ \.php$ { 15 fastcgi_pass php-fpm:9000; 16 fastcgi_index index.php; 17 include fastcgi_params; 18 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 19 fastcgi_param PATH_INFO $fastcgi_path_info; 20 } 21 22 # Deny access to .htaccess files 23 location ~ /\.ht { 24 deny all; 25 } 26 27 client_max_body_size 100500M; 28 }