apache配置多个虚拟主机
生活随笔
收集整理的這篇文章主要介紹了
apache配置多个虚拟主机
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
設置apache 多個虛擬目錄記錄??
#配置第2個虛擬目錄
<VirtualHost 127.0.0.2:80>
ServerName www.xx.com
DocumentRoot "E:/wamp/www/"
</VirtualHost>
<Directory "E:/wamp/www/">
??? Options Indexes FollowSymLinks Multiviews
??? AllowOverride All
??? Order Allow,Deny
??? Allow from all
</Directory>
#配置第2個虛擬目錄
在wamp\bin\apache\apache2.2.8\conf\httpc.conf? 文件下面最后加入以上 就可以設置多個虛擬目錄了
例如:
#配置虛擬主機 <VirtualHost 127.0.0.2:80> ServerName www.baozhuangji.com DocumentRoot "F:/sinaApp/komiles/1/" </VirtualHost><Directory "F:/sinaApp/komiles/1/">Options Indexes FollowSymLinks MultiviewsAllowOverride AllOrder Allow,DenyAllow from all </Directory>#配置虛擬主機 <VirtualHost 127.0.0.3:80> ServerName www.baozhuangji.cn DocumentRoot "D:/webRoot/metinfo/" </VirtualHost><Directory "D:/webRoot/metinfo/">Options Indexes FollowSymLinks MultiviewsAllowOverride AllOrder Allow,DenyAllow from all </Directory>?
轉載于:https://www.cnblogs.com/wangkongming/p/3965266.html
總結
以上是生活随笔為你收集整理的apache配置多个虚拟主机的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: .net 页面之间传值的几种方法!(转)
- 下一篇: 汉字和utf编码转换