Wamp supports multiple sites for Configuration Modification

Source: Internet
Author: User

This article describes how to modify the configuration in Wamp to support multiple sites.

Step 2: Modify httpd. conf and add a listener for port 1st.

 

 

# Listen 12.34.56.78: 80
Listen 80
Listen 8080.

Step 2: modify the configuration of virtual hosts, which is also in the httpd. conf file.

# Virtual Hosts
# Include CONF/extra/httpd-vhosts.conf
# Change
# Virtual Hosts
Include CONF/extra/httpd-vhosts.conf

Step 2, add the VM configuration and modify the httpd-vhosts.conf file.

#
# Use name-based virtual hosting.
#
Namevirtualhost *: 80
Namevirtualhost*: 8080

#
# Virtualhost example:
# Almost any Apache directive may go into a virtualhost container.
# The first virtualhost section is used for all requests that do not
# Match a servername or serveralias in any <virtualhost> block.
#
<Virtualhost *: 80>
Serveradmin [email protected]
DocumentRoot "C:/Wamp/www /"
Servername dummy-host.example.com
Serveralias www.dummy-host.example.com
Errorlog "log/dummy-host.example.com-error.log"
Customlog "logs/dummy-host.example.com-access.log" common
<Directory "C:/Wamp/www/">
Options indexes followsymlinks
AllowOverride all
Order allow, deny
Allow from all
</Directory>
</Virtualhost>

<Virtualhost *: 8080>
Serveradmin [email protected]
DocumentRoot "C:/Wamp/www2 /"
Servername dummy-host.example.com
Serveralias www.dummy-host.example.com
Errorlog "log/dummy-host.example.com-error.log"
Customlog "logs/dummy-host.example.com-access.log" common
<Directory "C:/Wamp/www2/">
Options indexes followsymlinks
AllowOverride all
Order allow, deny
Allow from all
</Directory>
</Virtualhost>

Step 3: restart Apache to see the effect.

Wamp supports multiple sites for Configuration Modification

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.