nginx虚拟主机配置类似下面的结构,(放到sites-enabled目录下,一个站点建一个文件也一样)
http{
server{
listen 80;
server_name a.com;
root /var/www/a;
}
server{
listen 80;
server_name b.com;
root /var/www/b;
}
server{
listen 80;
server_name c.com;
root /var/www/b;
} ...
- 2009-01-06 16:19
- 浏览 1166
- 评论(0)