2025年2月24日 星期一 甲辰(龙)年 腊月廿四 设为首页 加入收藏
rss
您当前的位置:首页 > 计算机 > 服务器 > Nginx

NGINX 文件代理服务器

时间:07-03来源:作者:点击数:21

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

 

方便获取更多学习、工作、生活信息请关注本站微信公众号城东书院 微信服务号城东书院 微信订阅号
推荐内容
相关内容
栏目更新
栏目热门