Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1683524
  • 博文数量: 347
  • 博客积分: 9328
  • 博客等级: 中将
  • 技术积分: 2680
  • 用 户 组: 普通用户
  • 注册时间: 2010-07-29 23:45
文章分类

全部博文(347)

文章存档

2016年(1)

2013年(4)

2012年(207)

2011年(85)

2010年(50)

分类: 系统运维

2011-12-03 22:40:07

1,修改文件:Apache Http Server安装目录\apache2.2\conf\httpd-vhosts.conf
添加监听端口新端口,比如8001:

Listen 80
Listen 8001

 

2,打开已经注释掉的配置:

#Virtual hosts
Include conf/extra/httpd-vhosts.conf

 

3,在httpd-vhosts.conf文件中添加

  1. <VirtualHost 10.2.20.12:8001>
  2.     ServerAdmin xxxxxx@live.com
  3.     DocumentRoot D:/httproot/viedonew
  4.     ServerName localhost_8001

  5.     AddDefaultCharset UTF-8

  6.     <Directory "D:/httproot/viedonew/">
  7.         Options All
  8.         AllowOverride All
  9.         Order allow,deny
  10.         Allow from all
  11.     </Directory>

  12. </VirtualHost>

 

4,重启apache服务器

阅读(1964) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~