apache基于ip配置虚拟主机


当前第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无法解析php问题?

centos Apache安装目录在哪

Apache无法解析php

Apache ant是什么意思

nginx与Apache的区别

Apache和tomcat有什么不同

如何在mac os系统上启动Apache服务

Apache如何开启gzip压缩功能

如何重启Apache

centos无法启动Apache怎么办

更多相关阅读请进入《Apache》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...