yaf在window环境下的nginx配置文件

yaf在window环境下的nginx配置文件

Ezra
2023-07-28 / 0 评论 / 112 阅读 / 正在检测是否收录...
location / {
        index   index.php index.html index.htm;
        if (!-e $request_filename){
        rewrite ^/(.*)                         
            /index.php last;
        } 
    }

    location ~ \.php$ {
        fastcgi_pass   127.0.0.1:9001;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            fastcgi_buffer_size 500k;
            fastcgi_buffers 4 1000k;
            fastcgi_busy_buffers_size 1000k;
            #fastcgi_pass php_backend; #unix:/var/run/php/php5.6-fpm.sock;
        fastcgi_index  index.php;
            include  fastcgi_params;
        #fastcgi_split_path_info ^(.+\.php)(.*)$;     #增加
        #fastcgi_param PATH_INFO $fastcgi_path_info;    #增加
    }
0

评论 (0)

取消