Python, Java, Life, etc

A blog of technology and life.

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

常用链接

留言簿

随笔分类

随笔档案

PyGuru's World

搜索

最新评论

阅读排行榜

评论排行榜

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 阅读(260) 评论(0)  编辑  收藏 所属分类: Build Website

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


网站导航: