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

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

在向大家详细介绍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> 

<!--// 网页尾部基本信息以及修饰配置部分_Start//--><div style=background-color:#123456;height:60px;padding:5px;margin:0;><span style=color:#fff>欢迎光临我的FTP站我的QQ:85171648</span><br>< span style=color:#fff>如果下载文件名乱码,那就是因为系统默认编码造成,请重命名即可</span></div& amp; gt;
<!--// 网页尾部基本信息以及修饰配置部分_End//-->

【编辑推荐】

  1. Ubuntu MySQL设置同步服务器
  2. Ubuntu mysql配置设置过程
  3. Ubuntu操作系统安装使用应该比较容易上手
  4. Ubuntu openSUSE这个版本对功能强大
  5. Ubuntu技巧使用GDebi来安装包
责任编辑:佚名 来源: 博客园
相关推荐

2010-02-26 14:54:20

Linux vmwar

2020-06-09 08:09:07

机器学习统计学习无监督学习

2021-08-16 08:42:31

MySQL查询数据库

2021-08-19 09:16:29

MySQL数据库优化器

2011-09-08 11:35:18

2010-10-08 14:23:08

MySQL中INSER

2017-08-31 14:09:26

数据库MySQLSQL优化

2010-09-14 10:55:14

DIV CSS网页制作

2012-06-27 09:29:49

程序员

2019-06-05 15:23:09

Redis缓存存储

2011-02-14 10:21:10

Ubuntu安装

2010-02-04 16:44:14

Ubuntu Mono

2010-01-04 10:06:56

Ubuntu gcc

2010-03-31 09:51:38

CentOS系统

2022-04-02 10:52:33

Go开发面试

2010-01-07 16:47:01

2010-02-06 17:08:58

Ubuntu ngin

2010-01-07 14:31:59

Ubuntu编译

2010-01-07 16:34:08

Ubuntu apac

2010-02-04 17:49:04

C++参数传递
点赞
收藏

51CTO技术栈公众号