Solution to Apache virtual host configuration problem_PHP tutorial

WBOY
Release: 2016-07-20 11:16:11
Original
813 people have browsed it

1 First find the httpd.conf file in D:wampbinapacheApache2.2.21conf and open it, then find it at more than 460 lines Remove the #, and the following is the situation # Virtual hosts Include conf/extra/httpd-vhosts.conf 2 Then open the httpd-vhosts.conf file in D:wampbinapacheApache2.2.21confextra At the end of the file add ServerAdmin webmaster@dummy-host3.example.com DocumentRoot "d:/wamp/www/4/huaguoshan" ServerName www.hgs2013.cn ErrorLog "logs/dummy-host3.example.com-error.log" CustomLog "logs/dummy-host3.example.com-access.log" common ServerAdmin webmaster@dummy-host4.example.com DocumentRoot "d:/wamp/www/test" ServerName www.test.cn ErrorLog "logs/dummy-host4.example.com-error.log" CustomLog "logs/dummy-host4.example.com-access.log" common Enter the domain name you want. ​ 3 Finally open the hosts file in C:WindowsSystem32driversetc At the end of the file, specify the domain name you just defined. 127.0.0.1 www.hgs2013.cn 127.0.0.1 www.test.cn That's ok, it's just my personal opinion

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/440131.htmlTechArticle1 First find the httpd.conf file in D:wampbinapacheApache2.2.21conf, open it, and then find and remove it at more than 460 lines# , and then the following situation is #Virtual hostsInclude conf/extra/http...
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