第一次用nginx,安装了h5ai,权限也改了,能正常显示界面但是看不到目录,也按照作者的要求设置了,nginx.conf如下:
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
index index.html index.php /docs/_h5ai/public/index.php;
server {
listen 80;
server_name local;
root /home/wwwroot/docs;
location / {
autoindex on;
}
location ~ \.php$ {
include fastcgi.conf;
fastcgi_index index.php;
fastcgi_pass unix:/tmp/php-cgi.socket;
}
}
}