Home > Article > Backend Development > window apache multi-site configuration method
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
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:
<VirtualHost*:80> DocumentRoot"D:/Appserv/www/1" ServerName www.xxx.com </VirtualHost>
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!