Home  >  Article  >  Backend Development  >  window apache multi-site configuration method

window apache multi-site configuration method

一个新手
一个新手Original
2017-09-28 09:46:261569browse

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!

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
Previous article:About Trait issues in PHPNext article:About Trait issues in PHP