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