nginx 目录服务器
nginx.conf主配置文件添加
include /etc/nginx/conf.d/vhost/*.conf;

mulu.conf
server { listen 8080; server_name 172.18.234.21; location / { root /root/; index index.html index.htm; autoindex on; autoindex_exact_size off; autoindex_localtime on; } }
如果报错403 修改nginx.conf的user nginx 为user root;或者授权你要下载的目录为nginx chown -R nginx:nginx
浙公网安备 33010602011771号