Wamp Configuring a virtual Host

Source: Internet
Author: User

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.

  • 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.