全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
apache下多站点的架设核心提示:这里是指同一IP绑定N个域名,有二种方式实现 方法1、仅修改httpd.conf 假设二个域名与 打开httpd.conf 将文件拖到最下面,加上 VirtualHost *:80 ServerN#域名 DocumentRootF:/website/bbs#该域名对应的目录地址 Direc 这里是指同一IP绑定N个域名,有二种方式实现方法1、仅修改httpd.conf假设二个域名与打开httpd.conf将文件拖到最下面,加上1. 2. ServerN#域名 3. DocumentRootF:/website/bbs#该域名对应的目录地址 4. #该节点是配置权限、默认首页啊等等东东。 5. OptionsFollowSymLinksIncludesNOEXECIndexes 6. DirectoryIndexindex.php 7. AllowOverrideNone 8. OrderDeny,Allow 9. Allowfromall 10. 11. 12. 13. 14. ServerN 15. DocumentRootD:/PHPSite/wordpress 16. 17. OptionsFollowSymLinksIncludesNOEXECIndexes 18. DirectoryIndexindex.php 19. AllowOverrideNone 20. OrderDeny,Allow 21. Allowfromall 22. 23. 重启apache,就OK啦。当然你要修改你的hosts文件。方法2、修改PhpServerApache2.2confextrahttpd-vhosts.conf直接将上面一段copy到httpd-vhosts.conf的最后即可。实际上看名字就知道httpd-vhosts.conf是一个虚拟站点配置集中地,方便管理。也就是如下:# # Virtual Hosts # # If you want to maintain multiple domains/hostnames on your # machine you can setup VirtualHost containers for them. Most configurations # use only name-based virtual hosts so the server doesnt need to worry about # IP addresses. This is indicated by the asterisks in the directives below. # # Please see the documentation at # # for further details before you try to setup virtual hosts. # # You may use the command line option -S to verify your virtual host # configuration. # # Use name-based virtual hosting. # NameVirtualHost *: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 ServerNameorServerAlias in any block. # ServerName #域名 DocumentRoot F:/website/bbs #该域名对应的目录地址 #该节点是配置权限、默认首页啊等等东东。 Options FollowSymLinks IncludesNOEXEC Indexes DirectoryIndex index.php AllowOverride None Order Deny,Allow Allow from all ServerName DocumentRoot D:/PHPSite/wordpress Options FollowSymLinks IncludesNOEXEC Indexes DirectoryIndex index.php AllowOverride None Order Deny,Allow Allow from all 重启apache。如果不行的话,看你的httpd.conf是否启用了vhost打开httpd.conf
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 答辩小组评语11
- 智能家居安装与维护技巧测试题库及答案
- 施工现场材料管理(正文)
- 试论翻译的原则
- 南京翻译公司英文介绍
- 东北大学授予研究生学位的工作细则
- 自动驾驶技术算法测试题及详细解读
- 2024医疗器械法规基础知识培训
- ISO9001质量管理体系认证基础培训上午场
- icepak中文培训教程(总汇)
- 城市低空安全监管平台解决方案
- pep人教版小学英语五年级上册第五单元教案
- 建筑消防设施维护保养方案
- 《胸痛中心质控指标及考核标准》(第三版修订版)
- 仓库安全风险辨识清单
- 污染和泄漏应急处理
- 陕煤集团榆林化学有限责任公司招聘笔试
- 前列腺癌放疗护理
- 智联国企行测笔试题库
- 【MOOC】信息社会与人工智能-山东大学 中国大学慕课MOOC答案
- 2024 年福建省中学生生物学竞赛初赛试题(解析版)
评论
0/150
提交评论