Friends ask the detailed content of the experiment!!!!!!
CodePudding user response:
DDD! Genuflect is beggedCodePudding user response:
DDDDDDDDDDDDDDDCodePudding user response:
# cp/usr/share/doc/HTTPD - 2.4.6/HTTPD - vhosts. Conf/etc/HTTPD/conf. D/# vim/etc/HTTPD/conf. D/HTTPD - vhosts. Conf
ServerName test1.abc.com
ServerAlias abc.com
ErrorLog "/var/log/HTTPD/test1 - error_log"
CustomLog "/var/log/HTTPD/test1 - access_log" common
ServerName test2.abc.com
ErrorLog "/var/log/HTTPD/test2 - error_log"
CustomLog "/var/log/HTTPD/test2 - access_log" common
# mkdir/var/WWW/test1/var/WWW/test2
# echo "test1.abc.com" & gt; The/var/WWW/test1/index. The HTML
# echo "test2.abc.com" & gt; The/var/WWW/test2/index. The HTML
# systemctl restart HTTPD
The client
# vim/etc/hosts
192.168.1.10 test1.abc.com
192.168.1.10 test2.abc.com
# # # # to baidu apache domain based on the virtual host
CodePudding user response:
Reference boa embedded web server