怎么用apache建多个网站啊
时间:2010-06-27
来源:互联网
能不能用apache建多个网站啊,可以像IIS一样,用主机头
有没有什么办法啊
有没有什么办法啊
作者: pbw15 发布时间: 2010-06-27
当然有办法.. 看手册 VirtualHost 章节...
作者: mrshelly 发布时间: 2010-06-30
引用 1 楼 mrshelly 的回复:
当然有办法.. 看手册 VirtualHost 章节...
当然有办法.. 看手册 VirtualHost 章节...
学习了。
作者: krayli 发布时间: 2010-07-02
Listen 127.0.0.1:8080
Listen 127.0.0.1:8081
<VirtualHost 127.0.0.1:8080>
DocumentRoot E:/0
<Directory E:/0>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost 127.0.0.1:8081>
DocumentRoot E:/1
<Directory E:/1>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Listen 127.0.0.1:8081
<VirtualHost 127.0.0.1:8080>
DocumentRoot E:/0
<Directory E:/0>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost 127.0.0.1:8081>
DocumentRoot E:/1
<Directory E:/1>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
作者: spcmusic 发布时间: 2010-07-06
主机头 来了
<VirtualHost *>
ServerName www.domain.tld
DocumentRoot /www/domain
</VirtualHost>
<VirtualHost *>
ServerName www.otherdomain.tld
DocumentRoot /www/otherdomain
</VirtualHost>
<VirtualHost *>
ServerName www.domain.tld
DocumentRoot /www/domain
</VirtualHost>
<VirtualHost *>
ServerName www.otherdomain.tld
DocumentRoot /www/otherdomain
</VirtualHost>
作者: dcomman 发布时间: 2010-07-20
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28