server{
charset utf-8;
client_max_body_size 128M;
listen 80;

server_name demo.com;

root /Users/playcrab/www/demo;


index index.php index.html;

access_log /Users/playcrab/logs/demo_access.log;
error_log /Users/playcrab/logs/demo_error.log;

location / {
try_files $uri $uri/ /index.php$is_args$args;
}

location ~ \.php$ {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass 127.0.0.1:9006;
try_files $uri =404;
}

location ~* /\. {
deny all;
}
}

相关文章:

  • 2021-09-09
  • 2021-10-07
  • 2021-10-23
  • 2021-07-29
  • 2021-07-27
  • 2021-05-28
猜你喜欢
  • 2022-12-23
  • 2021-04-21
  • 2021-11-05
  • 2021-10-31
  • 2021-06-22
  • 2021-05-11
相关资源
相似解决方案