Apache2.2 create VM _ PHP Tutorial

Source: Internet
Author: User
Apache2.2 create a VM. Apache2.2 create virtual host modify C: WINDOWSsystem32driversetchosts add a 192.168.0.80phpweb20 and then modify the ServerNamephpweb20DocumentRootC: WAMPApac apache2.2 file to create a virtual host

Modify C: WINDOWSsystem32driversetchosts
Added a 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


Enter http: // phpweb20/in the browser to open the directory. the connection fails.

Only 127.0.0.1 phpweb20 can be used. do you know why?

Let me answer





Modify C: WINDOWSsystem32driversetchosts to add a 192.168.0.80 phpweb20 and then modify the ServerName phpweb20 DocumentRoot "C:/WAMP/Apac...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.