时间:2021-07-01 10:21:17 帮助过:6人阅读
location ~ \.php { #1去掉$
root H:/PHPServer/WWW;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(.*)$;#2增加这一句
fastcgi_param PATH_INFO$fastcgi_path_info; #3增加这一句
fastcgi_param SCRIPT_FILENAME$document_root$fastcgi_script_name;
include fastcgi_params;
}
').addClass('pre-numbering').hide();
$(this).addClass('has-numbering').parent().append($numbering);
for (i = 1; i <= lines; i++) {
$numbering.append($('').text(i));
};
$numbering.fadeIn(1700);
});
});
以上就介绍了配置nginx使之支持pathinfo,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。