First, set
Analog domain
www.wang.org, blog.wang.org, bbs.wang.org
Site Folder
/var/html/www,/var/html/blog,/var/html/bbs
Second, the implementation of the steps:
1. Create a Web site folder
Watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqv/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity /center ">
2. Write the content to three index . Easy to test
3.cd to extra under the conf folder in Apache
Watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqv/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity /center ">
Add configuration to three websites
<virtualhost *:80>serveradmin [Email protected]--admin mailbox DocumentRoot "/var/html/www"--site folder servername Www.wang.org--ServerAlias wang.org--alias errorlog "Logs/www-error_log" Serveralias Wang.orgserveralias Wang.orgcustomlog "Logs/www-access_log" Common</virtualhost><virtualhost *:80>ServerAdmin [email Protected]documentroot "/var/html/blog" ServerName blog.wang.orgErrorLog "Logs/blog-error_log" Customlog "logs/ Blog-access_log "Common</virtualhost><virtualhost *:80>serveradmin [email protected]DocumentRoot"/var/ Html/bbs "ServerName bbs.wang.orgErrorLog" Logs/bbs-error_log "Customlog" Logs/bbs-access_log "common</ Virtualhost>
4. Add a configuration to the master configuration file
The gaze of the #Virtual hosts opened
Staring open #Server-pool management (MPM)
5. Post in drivers under window system32
Join local DNS
Ping www.wang.org,blog.wang.org can pass
6.
Window access to the www.wang.org, 403appears, indicating that there is no reference in the master configuration file
join under the httpd.conf
Check
Ask again
Apache configures a domain-based virtual host