nginx 允许访问目录配置

创建配置文件

 

[[email protected] conf.d]# cat /etc/nginx/conf.d/tg-t5.conf 
server {
    listen 8095;
    server_name localhost;
    location / {
    root /opt/nginx/tg-t5;
    index index.htm index.html;
    autoindex on;
    }
}

 

nginx 允许访问目录配置

访问结果:

nginx 允许访问目录配置

 

相关文章: