server {
        listen 80;
        server_name     www.aaa.com;
        root    /home/www/...;
        index   index.php index.html index.htm;

        location ~ \.php/ {
                if ($request_uri ~ ^(.+\.php)(/.+?)($|\?)) { }
                fastcgi_pass 127.0.0.1:9000;
                include fastcgi_params;
                fastcgi_param SCRIPT_NAME     $1;
                fastcgi_param PATH_INFO       $2;
                fastcgi_param SCRIPT_FILENAME $document_root$1;
        }
        location ~ \.php$ {
                fastcgi_pass 127.0.0.1:9000;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                include fastcgi_params;
        }

        access_log      /home/www/wwwlogs/www_aaa_com_access.log  access;
        error_log       /home/www/wwwlogs/www_aaa_com_error.log;

}

 

相关文章:

  • 2021-05-23
  • 2022-12-23
  • 2021-07-09
  • 2022-01-09
  • 2021-08-28
  • 2022-12-23
  • 2022-12-23
  • 2021-08-16
猜你喜欢
  • 2022-12-23
  • 2021-07-31
  • 2022-01-10
  • 2022-12-23
  • 2022-12-23
  • 2021-07-05
  • 2021-08-08
相关资源
相似解决方案