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文件中添加:
- <VirtualHost 10.2.20.12:8001>
- ServerAdmin xxxxxx@live.com
- DocumentRoot D:/httproot/viedonew
- ServerName localhost_8001
- AddDefaultCharset UTF-8
- <Directory "D:/httproot/viedonew/">
- Options All
- AllowOverride All
- Order allow,deny
- Allow from all
- </Directory>
- </VirtualHost>
4,重启apache服务器
阅读(2107) | 评论(0) | 转发(0) |