[Apache Series] How to configure Apache Vhost under Windows

Source: Internet
Author: User

    1. Find your Apache installation directory, the directory of Apache installed for small series

    2. 2

      Click the Conf folder   Enter the configuration directory, locate the httpd.conf file,

    3. 3

      To open the httpd.conf file,

      Find 475 rows,

      or ctr+f find httpd-vhosts.conf  

      Remove the previous #

      Ps: include conf/extra/httpd-vhosts.conf (this refers to the Apache installation directory under the Conf Folder below the extra below the httpd-vhosts.conf file   If you want to change the directory, you can also, but you must specify the correct directory).

    4. 4

      Find the file path you specified according to the previous step  

    5. 5

      Punch httpd-vhosts.conf file  , set the port, default to 80 port without modification, if your 8 port other programs occupy, please modify.

    6. 6

      Virtual host configuration, see diagram

    7. 7

      Restart Apache.   Start-to-run cmd input command

      Net stop  apache2.2net start Apache2.2

    8.  

[Apache Series] How to configure Apache Vhost under Windows

Related Article

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.