Wamp modifying multi-site configurations

Source: Internet
Author: User

This article describes the multi-site support If you modify the configuration in Wamp.

1th step, modify httpd.conf, add 8080 port to monitor

#Listen 12.34.56.78:80
Listen 80
Listen 8080

The 2nd step is to modify the virtual hosts configuration, which is also in the httpd.conf file.

# Virtual Hosts
#Include conf/extra/httpd-vhosts.conf
#修改为
# Virtual Hosts
Include conf/extra/httpd-vhosts.conf

3rd step, add the virtual host configuration, modify the httpd-vhosts.conf file.

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

#
# VirtualHost Example:
# Almost any Apache directive could go into a VirtualHost container.
# The first VirtualHost section was used for all requests that does not
# match a ServerName or serveralias in any <vir Tualhost> block.  
#
<virtualhost *:80>
ServerAdmin [email protected]
DocumentRoot "c:/wamp/www/"
ServerName dummy-host.example.com
Serveralias www.dummy-host.example.com
errorlog "logs/ Dummy-host.example.com-error.log "
Customlog" Logs/dummy-host.example.com-access.log "Common
<Directory" c:/wamp/www/">&NBSP;
Options Indexes followsymlinks 
Allowoverride all
Order allow,deny& nbsp
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 "Logs/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>

The 4th step, restart Apache, you can see the effect of

Wamp modifying multi-site configurations

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.