Phalcon7 nginx配置

server {
	listen 80 default_server reuseport;
	#listen [::]:80 default_server ipv6only=on;
	server_name _;
	root   "/home/wwwroot/default/pc7/public";
	index       index.php index.html index.htm;
    charset     utf-8;
    location / {
        try_files $uri $uri/ /index.php?_url=$uri&$args;
    }
 
	location ~ \.php(.*)$ {
		fastcgi_pass   unix:/tmp/php-cgi.sock;
		fastcgi_index  index.php;
		fastcgi_split_path_info  ^((?U).+\.php)(/?.+)$;
		fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
		fastcgi_param  PATH_INFO  $fastcgi_path_info;
		fastcgi_param  PATH_TRANSLATED  $document_root$fastcgi_path_info;
		include        fastcgi_params;  
	}
}

cgi.fix_pathinfo=1#php.ini

已标记关键词 清除标记
相关推荐
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页