docker nginx 配置

docker run -p 9999:80  -v /root/lls:/lls -v /root/llsconf:/etc/nginx/conf.d/ --name llsnginx -d nginx

 

default.conf 

server {
  listen 80;
  server_name localhost;
  charset utf-8;

  location / {
    root /usr/share/nginx/html;
    index index.html index.htm index.php;
  }

  location /lls {
    root /;
    autoindex on;
  }
}

  

posted on 2018-11-06 20:53  植物大戰僵尸  阅读(199)  评论(0编辑  收藏  举报

导航