最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

讓apache顯示目錄列表的配置方法

 更新時間:2013年02月09日 17:21:16   作者:  
本文教大家配置apache顯示目錄列表的方法,有需要的朋友不妨參考下

1、apache中顯示目錄列表

在http.conf中加入如下代碼(如有虛擬主機配置,加在虛擬主機配置段內),并把主目錄內的index.pho,index.html,index.htm文件刪除

復制代碼 代碼如下:

Alias /download "/download"
  <Directory "/download">
    Options Indexes
    Order allow,deny
    IndexOptions Charset=UTF-8
    Allow from all
  </Directory>

其中“/download”是要顯示文件列表的目錄,參數(shù)"Options Indexes"表示啟用目錄瀏覽,"IndexOptions Charset=UTF-8"設置字符集,以消除中文亂碼。

2、訪問虛擬目錄時可用"http://ip/alias"的形式,也可把主目錄內的index.php或index.html文件用如下代碼代替,實現(xiàn)用"http://ip"即可自動跳轉到指定的虛擬目錄,"("count()",60)"內的60表示跳轉倒計時為60ms。

復制代碼 代碼如下:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html">
<title>正在進入</title>
</head>
<body>
<form name=loading>
 <p align=center> <font color="#0066ff" size="5">正在進入,請稍等</font><font color="#0066ff" size="5" face="Arial">......</font>
  <input type=text name=chart size=46 style="font-family:Arial; font-weight:bolder; color:#0066ff; background-color:#fef4d9; padding:0px; border-style:none;">
  
  <input type=text name=percent size=47 style="color:#0066ff; text-align:center; border-width:medium; border-style:none;">
  <script> 
var bar=0 
var line="||" 
var amount="||" 
count() 
function count(){ 
bar=bar+2 
amount =amount + line 
document.loading.chart.value=amount 
document.loading.percent.value=bar+"%" 
if (bar<99) 
{setTimeout("count()",60);} 
else 
{
window.location = "http://www.fzitv.net";} 
}</script>
 </p>
</form>
</body>
</html>

相關文章

最新評論

青阳县| 桃源县| 大理市| 九江县| 丰城市| 泗洪县| 呈贡县| 绍兴县| 贵州省| 岳池县| 商洛市| 公安县| 合江县| 土默特右旗| 洛隆县| 托克逊县| 龙岩市| 始兴县| 都昌县| 广德县| 武邑县| 永福县| 福贡县| 靖西县| 台南市| 和硕县| 宿州市| 闽侯县| 西林县| 彭阳县| 大宁县| 临安市| 岳阳市| 兴业县| 茂名市| 屏边| 沙田区| 镇坪县| 九龙城区| 龙井市| 天柱县|