window apache multi-site configuration method

一个新手
Release: 2023-03-16 12:08:02
Original
1490 people have browsed it

1. Allow Apache to load the virtual host module at startup.

Open the conf/httpd.conf file in the Apache installation directory, find the following two lines of text, remove the # sign at the front, and save it.

#LoadModule vhost_alias_module modules/mod_vhost_alias.so #Include conf/extra/httpd-vhosts.conf
Copy after login

2. After the configuration is completed, open the /conf/extra/httpd-vhosts.conf file in the Apache installation directory, and add the following at the end:

DocumentRoot is the file placement path, and ServerName is Website domain name:

 DocumentRoot"D:/Appserv/www/1" ServerName www.xxx.com 
Copy after login

3. Add the domain name to the host file: www.xxx.com

The above is the detailed content of window apache multi-site configuration method. 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
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!