server {
listen 80;
server_name blog.com;
root /var/www/html/99Blog/public;
index index index.php index.html index.htm default.php default.htm default.html;
access_log /var/log/nginx/nginx.blog.access.log main;
error_log /var/log/nginx/nginx.blog.error.log warn;
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}
location ~ [^/]\.php(/|$){
try_files $uri =404;
fastcgi_pass php72:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_NAME $fastcgi_script_na