Home > php教程 > php手册 > apache2.2创建虚拟主机

apache2.2创建虚拟主机

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 09:52:34
Original
1004 people have browsed it




apache2.2创建虚拟主机

修改C:WINDOWSsystem32driversetchosts
添加了一条 192.168.0.80 phpweb20

然后修改httpd.conf文件

ServerName phpweb20
DocumentRoot "C:/WAMP/Apache/htdocs/workspace/flex/phpweb20/htdocs"


AllowOverride All
Options All


php_value include_path ".;C:/WAMP/Apache/htdocs/workspace/flex/phpweb20/include;C:/WAMP/php/PEAR"
php_value magic_quotes_gpc off
php_value register_globals off


然后在浏览器输入http://phpweb20/ 无法打开目录,显示连接失败

只有127.0.0.1 phpweb20的情况下才可以,各位大侠知道这是为什么吗?

我来回答





Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template