Home >Backend Development >PHP Tutorial >Create a virtual host with apache2.2_PHP tutorial

Create a virtual host with apache2.2_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:51:03895browse




apache2.2 creates virtual host

Modify C:WINDOWSsystem32driversetchosts
Added 192.168.0.80 phpweb20

Then modify the httpd.conf file

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


Then enter http://phpweb20/ in the browser. The directory cannot be opened and the connection failure is displayed

This is only possible with 127.0.0.1 phpweb20. Do you guys know why?

Let me answer





www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/632608.htmlTechArticleapache2.2 creates a virtual host and modifies C:WINDOWSsystem32driversetchosts. Adds a 192.168.0.80 phpweb20 and then modifies the httpd.conf file ServerName. phpweb20 DocumentRoot "C:/WAMP/Apac...
Statement:
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