Detailed instructions on how to configure a VM in apache. 1. open the LoadModulevhost_alias_modulemodulesmod_vhost_alias.soIncludeconfextrahttpd-vhosts.conf2.extra in the configuration httpd-vhosts.conf Directory of the vhost in the apache configuration file
1. open the vhost configuration in the apache configuration file.
LoadModule vhost_alias_module modules/mod_vhost_alias.so
Include conf/extra/httpd-vhosts.conf
2. httpd-vhosts.conf in extra directory
There are three configuration items: the first DocumentRoot, the absolute directory of the project, followed by a slash (/); the second is ServerPath, consistent with DocumentRoot; and the third is ServerName, the domain name you entered in your browser. Example: test.123.cn
3. point the domain name in the hosts file. For example, 127.0.0.1 test.123.cn
LoadModule vhost_alias_module modules/mod_vhost_alias.so Include conf/extra/httpd-vhosts.conf 2. the httpd-vhosts.conf in the extra directory is included in...