nginx.conf

#user  nobody;
worker_processes 1;

#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;

#pid logs/nginx.pid;


events {
worker_connections 1024;
}


http {
server {
listen 80;
server_name www.mingshine.com;
location / {
root data/www;
index index.html index.htm;
}
}

server {
listen 80;
server_name bbs.mingshine.com;
location / {
root data/bbs;
index index.html index.htm;
}
}


}

nginx学习-虚拟主机配置域名_nginx


nginx学习-虚拟主机配置域名_nginx_02

nginx学习-虚拟主机配置域名_html_03