Python, Java, Life, etc

A blog of technology and life.

BlogJava 首页 新随笔 联系 聚合 管理
  30 Posts :: 0 Stories :: 9 Comments :: 0 Trackbacks

Virtual hosts in Apache

in Vhosts.conf, the following is the real setting. The docroot may not allow index, so you need to put index.html to test the virtual host

===============================================

# Listen for virtual host requests on all IP addresses
NameVirtualHost *:80


DocumentRoot /var/www/html/web
ServerName web.mydomain.com

# Other directives here

DocumentRoot /var/www/html/news
ServerName news.mydomain.com

# Other directives here


DocumentRoot /var/www/html/photo
ServerName photo.mydomain.com

# Other directives here
posted on 2005-02-14 02:56 pyguru 阅读(189) 评论(0)  编辑  收藏 所属分类: Build Website

只有注册用户登录后才能发表评论。


网站导航: