• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

Ubuntu AutoIndex一般在编译时已经安装好

武飞扬头像
51CTO
帮助0

在向大家详细介绍Ubuntu AutoIndex之前,首先让大家了解下Ubuntu AutoIndex,然后全面介绍Ubuntu AutoIndex,希望对大家有用。然后确定httpd.conf开启了Ubuntu AutoIndex模块。

windows下Mod_Ubuntu AutoIndex模块,去掉前面注释,linux下的httpd.conf是没有Mod_Ubuntu AutoIndex模块的就在终端到 bin目录httpd -list查看出mod_Ubuntu AutoIndex.c 一般在编译时已经安装好!

在httpd.conf里加入要显示列表的目录:

<Directory "/home/jian/wwwroot/ftp"> #注意实际你要显示的目录路径Options Indexes FollowSymLinks#开启目录列表索引模式#Options Indexes#参数设置IndexOptions FancyIndexing ScanHTMLTitles NameWidth=328 DescriptionWidth=250 HTMLTable VersionSort FoldersFirst  Charset=UTF-8

  1. #ScanHTMLTitles:搜索HTML标题  
  2. #NameWidth:文件命显示字节数  
  3. #DescriptionWidth:描述显示字节数  
  4. #HTMLTable:允许HTML格式  
  5. #FoldersFirst:目录优先 

#添加文件描述

  1. AddDescription "1.2.6压缩版本" jquery-1.2.6.pack.js  
  2. AddDescription "UBUNTU8.04下编译笔记" LAMP安装过程笔录  
  3. AddDescription "推荐VIM经典入门教程" 大家来学vim.pdf  
  4. AddDescription "由小X提供HTML版" jQuery1.2API手册.rar  
  5. AddDescription "此文件过大,下载时通知我!" PHP与MySQL.WEB开发.pdf 

#文件和文件夹添加图标

  1. DefaultIcon /data/index/icon/file.gif  
  2. AddIcon /data/index/icon/close.gif ^^DIRECTORY^^ 

#索引排除选项IndexIgnore header.html footer.html#索引头部嵌入文件HeaderName /data/index/header.html#索引底部嵌入文件ReadmeName /data/index/footer.html
#默认索引排序方式IndexOrderDefault Ascending Date#关闭服务器标志

ServerSignature Off           

  1. AllowOverride All  
  2. order allow,deny  
  3. Allow from all  
  4. </Directory> 

header.html索引头部嵌入文件内容:(以下以我本机为例参考DIY就是)

  1. <!--// 网页基本信息以及修饰配置部分_Start//--> 
  2. <div style=background-color:#123456;height:100px;padding:0;margin:0;> 
  3. <img src="/data/index/005.jpg" align="absmiddle" alt="阿健PHP"> 
  4. <span style=color:#fff;font-size:22px;>阿健B本机FTP站</span> 
  5. <Script Language="JavaScript"> 
  6. var timedatenew Date("August 8,2008");  
  7. var times="北京奥运会";  
  8. var now = new Date();  
  9. var date = timedate.getTime() - now.getTime();  
  10. var time = Math.floor(date / (1000 * 60 * 60 * 24));  
  11. if (time >= 0) ; 

document.write("<font style='font-size:12px;line-height:18px;color:yellow'>离2008" times "开幕 还有:</font><font style='color:#F***100;line-height:32px;font-family:Verdana;font-size:24px;'><b>" time "</b></font><font style='font-size:12px;line-height:18px;color:yellow'>天</font& gt;");
</Script><span id="time" style=color:#fff;padding:0 60px 0 0;></span>

  1. <script language="javascript"> showtime();</script> 
  2. </div><!--// 网页基本信息以及修饰配置部分_End//--> 
  3.  
  4. <table width=100border=0 cellspacing=0 cellpadding=0 bgcolor=#ffffff> 
  5. <tr> 
  6. <td bgcolor=f0f3fa> 
  7. <!--// 目录内容开始显示部分_Start//--> 
  8. footer.html索引底部嵌入文件内容:(一样参考,注意注释)  
  9. <!--// 目录内容开始显示部分_EnD//--> 
  10. </td> 
  11. <td bgcolor="#f0f3fa"> 
  12. <!--// 中部右侧修饰部分//--> 
  13. <img src="/data/index/jianbb.jpg" align="absmiddle" alt="阿健B"><br> 
  14. </td> 
  15. </tr> 
  16. </table> 

【编辑推荐】

  1. Ubuntu MySQL设置同步服务器
  2. Ubuntu mysql配置设置过程
  3. Ubuntu操作系统安装使用应该比较容易上手
  4. Ubuntu openSUSE这个版本对功能强大
  5. Ubuntu技巧使用GDebi来安装包

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /news/detail/tanhcajkbg
系列文章
更多 icon
同类精品
更多 icon
继续加载