Wamp Virtual Host Configuration

Source: Internet
Author: User

1. Guarantee the Httpd.conf

LoadModule Php5_module

Phpinidir

These two are not commented out by the #

2. Open Multi-site configuration

httpd.conf below: Include conf/extra/httpd-vhosts.conf Remove the previous # comment

3.http-vhosts.conf Configuration

Directories in. Wamp\bin\apache\apache2.4.9\conf\extra;(specific case-specific search)

The following wording can be written in the http-vhosts.com above

<virtualhost *:>    ServerAdmin [email protected]-host2.example.com    "  c:/wamp/www/development"  #此处为要解析网站的位置    ServerName development.test.com    # Here is the domain    name "logs/dummy-host2.example.com-error.log"      to be resolved " Logs/dummy-host2.example.com-access.log " Common</VirtualHost>

These two places are the two most important.

4. If the test phase can be vhost in the system to configure the domain name

Vhost Path: C:\Windows\System32\drivers\etc\vhost

5. Restart the server.

Restart All Services

Wamp Virtual Host Configuration

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.