How to configure php website multi-site in wampserver

小云云
Release: 2023-03-22 21:06:01
Original
2812 people have browsed it

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>
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!