WAMP: Configure virtual hosts and wamp Virtual Hosts

Source: Internet
Author: User

WAMP: Configure virtual hosts and wamp Virtual Hosts
Problem Background: a php Project A has been downloaded from the Internet. Project A needs to be deployed under the root directory of the website.

Configuring a VM can solve this problem.
1. Open the Apache configuration file httpd. conf and remove the # Include conf/extra/httpd-vhosts.conf before #!!

2. Open the Apache/conf/extra sub-configuration file httpd-vhosts.conf under apache

3. Add at the end
<VirtualHost *: 80>
DocumentRoot "C: \ wamp \ www \ default"
ServerName localhost
ServerAlias localhost
ErrorLog "C :\wamp \ www \ default/default-error.log"
CustomLog "C: \ wamp \ www \ default/default. log" common
</VirtualHost>
4. Restart Apache
5. Access
Http: // localhost directly accesses the default directory.

---------------------------------------------------------
Wuhan jiutian bird-p2p Online Loan System Development-Internet Application Software Development
Official Website: http://jiutianniao.com
Social Q & A: http://ask.jiutianniao.com

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.