存档

文章标签 ‘虚拟主机’

NginxChsVirtualHostExample

2012年7月20日 4 条评论

两个虚拟主机(纯静态-html 支持) - Two Virtual Hosts, Serving Static Files   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.domain2.com; access_log logs/domain2.access.log ...

分类: nginx 标签: ,