apache配置虚拟目录与默认文档
来源:互联网 发布:java中类和对象的用法 编辑:程序博客网 时间:2024/06/04 23:28
虚拟目录
1.找到"conf/httpd.conf" 文件
2.在节点:<IfModule alias_module>里增加
Alias /aidd2008 "D:/php/web/aidd2008"
其中 aidd2008 是你想要访问的虚拟目录; D:/php/web/aidd2008 为物理路径,以[/]代替[\]"
我们就在</IfModule>后面接着加:
<Directory "D:/php/web/aidd2008">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
(*)aidd2008 为虚拟目录名称,一般不用在名称后加"/",若加入,每次都要在虚拟目录后输入"/"才能访问网站
Alias /gt "D:/PHP/gt"
<Directory "D:/PHP/gt">
<IfModule php5_module>
<Files "index.php">
php_admin_flag safe_mode off
</Files>
</IfModule>
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
3.重启Apache
设置默认页面
方法1 设置全局的:
<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>
方法2 针对某一目录可以这么设置:
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>
- apache配置虚拟目录与默认文档
- apache 配置默认目录外当虚拟目录
- 配置apache虚拟目录与虚拟主机
- Apache虚拟目录与虚拟主机配置
- Apache配置站点与虚拟目录大全
- apache 配置虚拟目录+默认页+隐藏index.php
- apache配置虚拟目录
- Apache虚拟目录的配置
- Apache虚拟目录的配置
- Apache HttpServer 虚拟目录配置
- apache 2 虚拟目录 配置
- apache中配置虚拟目录
- apache 配置虚拟目录
- Ubuntu 配置Apache虚拟目录
- apache配置虚拟目录
- Apache 配置虚拟目录
- Apache 虚拟目录配置详解
- apache配置虚拟目录
- LAMP网站架构方案分析
- XAMPP更改Apache的网站根目录
- iOS开发 label上显示不同颜色不同大小的字
- XAMPP虚拟主机配置,多域名绑定访问本地站点
- 仿ViewPager效果二
- apache配置虚拟目录与默认文档
- iOS学习之UIDatePicker控件使用
- 火狐下无法用window.close关闭窗口解决
- xampp Apache Access forbidden! Error 403 解决方法
- shell中map的使用和遍历
- Git Gui for Windows的建库、克隆(clone)、上传(push)、下载(pull)、合并
- PHP文件(图片)上传
- 递归获取大类中的所有小类
- git push 小结