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

Create a virtual host with apache2.2_PHP tutorial

WBOY
Release: 2016-07-13 10:51:03
Original
894 people have browsed it




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...
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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template