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;
  }
}

  

原文地址:https://www.cnblogs.com/LinsenLi/p/9917971.html