Wampserver How to configure multiple sites for PHP sites

Source: Internet
Author: User
This article is mainly to share with you wampserver how to configure the PHP site multi-site, mainly in the form of code and everyone to share, hope to help everyone.

httpd.conf files can be added in the port

For example:

Listen 0.0.0.0:8080
Listen [:: 0]:8080

httpd-vhosts.conf files Setting up multiple sites

Require all granted is set to be accessed by the extranet

<virtualhost *:80>    ServerName localhost    documentroot c:/wamp/www    <directory "C:/wamp/www" >        Options Indexes followsymlinks execcgi        Order Allow,deny        allowoverride all Require all        granted    </directory></ Virtualhost>

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.