当前第2页 返回上一页
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | <VirtualHost 192.168.1.11:80>
ServerName www.test1.com
DocumentRoot /www/test1/
<Directory "/www/test1" >
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow From All
</Directory>
</VirtualHost>
<VirtualHost 192.168.1.12:80>
ServerName www.test1.com
DocumentRoot /www/test2/
<Directory "/www/test2" >
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow From All
</Directory>
</VirtualHost>
<VirtualHost 192.168.1.13:80>
ServerName www.test1.com
DocumentRoot /www/test3/
<Directory "/www/test3" >
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow From All
</Directory>
</VirtualHost>
|
完成,现在测试下每个虚拟主机,分别访问www.test1.com、www.test2.com、www.test3.com。
以上就是apache基于ip配置虚拟主机的详细内容,更多文章请关注木庄网络博客!
返回前面的内容
相关阅读 >>
Apache怎么看日志
Apache spark 是什么
配置Apache虚拟主机的三种方法
nginx设置仅允许个别ip访问的方法
Apache怎么绑定域名
Apache如何隐藏index.php
Apache服务器有什么特点
Apache同时配置301和https跳转
Apache是什么公司
如何修改Apache指定主页
更多相关阅读请进入《Apache》频道 >>
转载请注明出处:木庄网络博客 » apache基于ip配置虚拟主机