1. 程式人生 > >docker nginx 配置

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