DirectoryIndex 详解
来源:互联网 发布:易语言自动关机源码 编辑:程序博客网 时间:2024/05/18 00:00
更改Apache默认起始(索引)页面:DirectoryIndex
Apache默认索引页面是index.html,修改成其他文件需要修改httpd.conf文件:
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
可在Apache根目录建立一个负责跳转的index.php,比如输入IP地址直接跳转到 http://www.freeeim.com/
<?php
if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
$uri = 'https://';
} else {
$uri = 'http://';
}
$uri .= $_SERVER['HTTP_HOST'];
header('Location: '.$uri.'/myweb/');
exit;
?>
0 0
- DirectoryIndex 详解
- magento:DirectoryIndex not allowed here
- 详解
- 详解
- 详解
- 详解
- &,&&,|,||详解
- 详解
- Scala详解--------基础知识详解
- Spring详解-----------事务详解
- github 详解详解
- InputFilter详解、TextWatcher详解
- Spring详解-----------事务详解
- 【词汇详解】事务详解
- Session 详解
- Session 详解
- sizeof详解
- 端口详解
- oracle 触发器的种类和触发事件
- android 数据库基础用法
- SAP BO 技术
- 基本知识
- error:jquery 用$.post 传递给php页面值时,没有返回
- DirectoryIndex 详解
- HDU 1044 Collect More Jewels
- Netty In Action中文版 - 第四章:Transports(传输)
- TCP/UDP讲解
- 网页制作中的背景处理
- 数据结构 第一章
- AI文件格式分析
- 导出数据库时EXP-00008
- Netty In Action中文版 - 第五章:Buffers(缓冲)