Wamp multi-site configuration, wamp site configuration _ PHP Tutorial

Source: Internet
Author: User
Wamp multi-site configuration and wamp site configuration. Wamp multi-site configuration, wamp site configuration online methods Wuhua white door, specially recorded, need a friend to take it. Files to be modified: httpd. confhttpd-vhosts.conf wamp multisite configuration, wamp site configuration

The method on the Internet is five flowers and white door. I want to record it specially. if you need a friend, just take it as needed.

Files to be modified: httpd. conf/httpd-vhosts.conf/hosts

Corresponding path:

Httpd. conf: wamp \ bin \ apache \ Apache2.2.21 \ conf

Httpd-vhosts.conf: wamp \ bin \ apache \ Apache2.2.21 \ conf \ extra

Hosts: c \ Windows \ System32 \ drivers \ etc

Modification process:

1, open httpd. conf, about 466 lines: # Include conf/extra/httpd-info.conf, delete #;

2, or httpd. conf, about 188 rows:


Options FollowSymLinks
AllowOverride None
Order deny, allow
Deny from all

Changed:


Options FollowSymLinks
AllowOverride None
Order deny, allow
# Deny from all
Allow from all
# Allow All Access
Satisfy all

3. open the httpd-vhosts.conf and add the following code (modify the wamp installation path on your own) in the bottom blank space ):


ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "f:/wamp/www"
ServerName localhost
ServerAlias www.dummy-host.example.com
ErrorLog "log/dummy-host.example.com-error.log"
CustomLog "logs/dummy-host.example.com-access.log" common



ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "f:/wamp/www2"
ServerName www2.com
ServerAlias www.dummy-host.example.com
ErrorLog "log/dummy-host.example.com-error.log"
CustomLog "logs/dummy-host.example.com-access.log" common

4. last step: Open the hosts file and add the following code under the last line:

127.0.0.1 localhost

127.0.0.1 www2.com

After wamp is restarted, localhost and www2.com can be used to differentiate Development. the configuration of multiple sites is successful.

The gossip method on the Internet is five flowers and white door, specially recorded, the need of friends to take it on their own. File to be modified: httpd. conf/httpd-vhosts.conf /...

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.