配备文件:
代码如高:
http {
server {
listen 80;
server_name www.domain1.com;
access_log logs/domain1.access.log main;
location / {
index index.html;
root /var/www/domain1.com/htdocs;
}
}
server {
listen 80;
server_name www.domain二.com;
access_log logs/domain二.access.log main;
location / {
index index.html;
root /var/www/domain两.com/htdocs;
}
}
}
分析:
只需正在模块内中新删模块;详细的按照你的实践必要往部署。
以上等于nginx多网站要是陈设的具体形式,更多请存眷萤水红IT仄台另外相闭文章!
发表评论 取消回复