NGINX 文件代理服务器
- server {
- listen 9900;
- server_name localhost;
-
- #access_log /var/log/nginx/host.access.log main;
-
- location /root {
- root /root/; # 文件放置目录/root/root/中
- autoindex on;
- autoindex_exact_size off;
- autoindex_localtime on;
- charset utf-8,gbk;
- }
- }
-
-
- nginx -s stop
- nginx -c /etc/nginx/nginx.conf
- nginx -s reload