Home > Backend Development > PHP Tutorial > WAMP configure virtual host

WAMP configure virtual host

WBOY
Release: 2016-08-08 09:25:01
Original
1027 people have browsed it
Problem background: I downloaded a PHP project A from the Internet. Project A needs to be deployed in the root directory of the website. Configuring a virtual host can solve this problem.1. Open Apache’s configuration file httpd.conf and remove the # in front of #Include conf/extra/httpd-vhosts.conf! ! 2. Open the secondary configuration file httpd-vhosts.conf under Apache's apache/conf/extra3. Add at the end DocumentRoot "C: wampwwwdefault" ServerName localhost ServerAlias ​​localhost ErrorLog "C:wampwwwdefault/default-error.log" CustomLog "C:wampwwwdefault/default ault.log" common 4. Restart Apache 5. Visit http://localhostDirectly access the default directory.------------------------------------------------- ----------- Wuhan Jiutianniao-p2p online loan system development-Internet application software developmentCompany official website:http://jiutianniao.comSocial Q&A:http: //ask.jiutianniao.com

The above introduces WAMP configuration virtual host, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.

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