搜索了下,只要加上
autoindex on; 就ok! location / {
root /usr/share/nginx/html/;
indexindex.php index.html index.htm;
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1last;
}
autoindex on;
}
搞定!
').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,访问根目录,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!