windows下面apache配置虚拟目录(测试使用,发布网站不建议目录访问)
2013-09-27 14:55
615 查看
windows下面是这样简单设置
1 Apache虚拟目录:
针对某一目录可以这么设置:
Alias /aidd2008 "D:/php/web/aidd2008"
<Directory "D:/php/web/aidd2008">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
DirectoryIndex default.php
</Directory>
如果上面报错没有权限访问,要加入 Require all granted 。
设置默认页面
设置全局的:
<IfModule dir_module>
DirectoryIndex index.php index.php4 index.php3 index.cgi index.pl index.html index.htm index.shtml index.phtml default.php
</IfModule>
1 Apache虚拟目录:
针对某一目录可以这么设置:
Alias /aidd2008 "D:/php/web/aidd2008"
<Directory "D:/php/web/aidd2008">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
DirectoryIndex default.php
</Directory>
如果上面报错没有权限访问,要加入 Require all granted 。
设置默认页面
设置全局的:
<IfModule dir_module>
DirectoryIndex index.php index.php4 index.php3 index.cgi index.pl index.html index.htm index.shtml index.phtml default.php
</IfModule>
相关文章推荐
- IIS_Web网站发布配置_解除网络访问Windows身份验证限制
- 2008年3月小记(设置Windows服务的依赖关系,配置MSMQ的访问权限,WCF的安全配置,删除重建网站,HttpWebRequest,一年中的周,在WCF中使用HttpContext,String.Join)
- windows安装并配置apache https 网站 &发布企业级iOS APP(enterprise)
- windows使用tracert测试分析访问网站的路由节点
- 在Windows下配置Apache + OpenSSL 经测试可以使用
- 2008年3月小记(设置Windows服务的依赖关系,配置MSMQ的访问权限,WCF的安全配置,删除重建网站,HttpWebRequest,一年中的周,在WCF中使用HttpContext,String.Join)
- 使用apache和htaccess对目录访问设置密码保护配置教程
- 配置Apache禁止访问网站目录
- SpringBoot系列三:SpringBoot基本概念(统一父 pom 管理、SpringBoot 代码测试、启动注解分析、配置访问路径、使用内置对象、项目打包发布)
- Apache + Windows 2003 配置网站目录权限小结
- Apache配置禁止使用IP访问网站(已测)
- Windows环境下apache 配置(多域名访问多目录站点)
- 配置Apache禁止访问网站目录
- 黄聪:windows下使用xampp3.2.2配置多个监听端口和不同的网站目录
- apache访问目录配置 Allow Deny Order 指令的使用
- 如何配置nginx,从而可以访问网站根目录的文件
- 在vs.net2008中使用CuteEditor编辑器时,当发布网站时,生成的CuteSoft_Client\CuteEditor 目录中会缺少ditor.cep文件。
- 使用Apache Benchmark给自己的网站进行测试
- 配置Apache的访问目录(for PHP)
- Centos linux 下配置 apache ,创建虚拟网站访问路径