Wamp Multi-site configuration, wamp site Configuration _php Tutorial

Source: Internet
Author: User

Wamp Multi-site configuration, wamp site configuration


Online method Five gray door, deliberately recorded, the need for friends to take the good.

Files that need 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

Modify the process:

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

2, or httpd.conf, about 188 lines:


Options FollowSymLinks
AllowOverride None
Order Deny,allow
Deny from all

Switch


Options FollowSymLinks
AllowOverride None
Order Deny,allow
#Deny from all
Allow from all
#允许所有访问
Satisfy All

3. Open httpd-vhosts.conf and add the following code in the bottom margin ( modify the Wamp installation path yourself ):


ServerAdmin webmaster@dummy-host.example.com
DocumentRoot " f:/wamp/www"
ServerName localhost
Serveralias www.dummy-host.example.com
Errorlog "Logs/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 "Logs/dummy-host.example.com-error.log"
Customlog "Logs/dummy-host.example.com-access.log" common

4, the last step: Open the Hosts file and add the following code below the last line:

127.0.0.1 localhost

127.0.0.1 www2.com

After restarting Wamp , localhost and www2.com can differentiate between development and multi-site configuration success.

http://www.bkjia.com/PHPjc/1051882.html www.bkjia.com true http://www.bkjia.com/PHPjc/1051882.html techarticle Wamp Multi-site configuration, wamp site configuration on-line method five gray door, deliberately recorded, the need for friends to take the good. Files that need to be modified: httpd.conf/httpd-vhosts.conf/...

  • 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.