我用docker搭建的lnmp环境,外部访问不了网站目录,怎么设置nginx呢?
搜索了下,只要加上 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