解决方法
打开nginx/conf/vhosts.conf
添加** autoindex on
;** 这个默认是off的 意思是禁止访问目录 需要开启
location / {
root $wwwroot;
autoindex on;
add_header Cache-Control 'no-store';
index index.html index.htm index.php;
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php/$1 last;
break;
}
}