把以下虚拟机的配置加在 httpd.conf 文件末尾即可
NameVirtualHost 121.9.111.111:80
# # VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any block.
# ServerAdmin webmaster@dummy-host.appservnetwork.com
<VirtualHost 121.9.238.161:80>
ServerAdmin webmaster@dummy-host.appservnetwork.com DocumentRoot C:/AppServ/www/52anye
ServerName www.***01.com ServerAlias www.***01.com ErrorLog logs/dummy-www.52anye.com-error_log
CustomLog logs/dummy-www.52anye.com-access_log common
</VirtualHost><VirtualHost 121.9.238.161:80>
ServerAdmin webmaster@dummy-host2.appservnetwork.com DocumentRoot C:/AppServ/www/bbs
ServerName ***.***02.com
ErrorLog logs/dummy-forum.gamediad.com-error_log
CustomLog logs/dummy-forum.***.com-access_log common
</VirtualHost>
apache配置多网站多域名
原创
©著作权归作者所有:来自51CTO博客作者jack2022的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章