Home >Backend Development >PHP Tutorial >How to configure php website multi-site in wampserver

How to configure php website multi-site in wampserver

小云云
小云云Original
2018-03-31 11:23:102884browse

This article mainly shares with you how to configure php website multi-site with wampserver. It is mainly shared with you in the form of code. I hope it can help you.

The port can be added to the httpd.conf file

For example:

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

httpd-vhosts.conf file sets up multiple sites

Set Require all granted before it can be accessed from the external network

<VirtualHost *:80>
    ServerName localhost
    DocumentRoot c:/wamp/www
    <Directory "c:/wamp/www">
        Options Indexes FollowSymLinks ExecCGI
        Order allow,deny
        Allow from all
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

The above is the detailed content of How to configure php website multi-site in wampserver. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn