Issue background: Download a PHP project from the Web A,a project needs to be deployed in the root directory of the Web site. Configuring a virtual host can solve this problem. 1. Open Apache configuration file httpd.conf and remove the #!! in front of # include conf/extra/httpd-vhosts.conf 2. Open the secondary configuration file under Apache Apache/conf/extra httpd-vhosts.conf 3. Increase at the end 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 4. Restart Apache 5. Access http://localhost Direct access to the default directory. --------------------------------------------------------- Wuhan nine days Bird-p2p network Loan system development-Internet application software development Company official website: http://jiutianniao.com social quiz: http://ask.jiutianniao.com
Above describes the Wamp configuration virtual host, including aspects of the content, I hope to be interested in PHP tutorial friends helpful.