Home > OS >  Friends for a LINUX build WEB server details
Friends for a LINUX build WEB server details

Time:11-17


Friends ask the detailed content of the experiment!!!!!!

CodePudding user response:

DDD! Genuflect is begged

CodePudding user response:

DDDDDDDDDDDDDDD

CodePudding 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
DocumentRoot "/var/WWW/test1"
ServerName test1.abc.com
ServerAlias abc.com
ErrorLog "/var/log/HTTPD/test1 - error_log"
CustomLog "/var/log/HTTPD/test1 - access_log" common


DocumentRoot "/var/WWW/test2"
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
  • Related