<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    大漠駝鈴

    置身浩瀚的沙漠,方向最為重要,希望此blog能向大漠駝鈴一樣,給我方向和指引。
    Java,Php,Shell,Python,服務器運維,大數(shù)據(jù),SEO, 網(wǎng)站開發(fā)、運維,云服務技術(shù)支持,IM服務供應商, FreeSwitch搭建,技術(shù)支持等. 技術(shù)討論QQ群:428622099
    隨筆 - 238, 文章 - 3, 評論 - 117, 引用 - 0
    數(shù)據(jù)加載中……

    Cenots apache修改默認頁面,轉(zhuǎn)發(fā)

    /var/www/error/noindex.html

    網(wǎng)站還沒有做好,可以先做一個簡單的轉(zhuǎn)發(fā)。



    下面寫的比較詳細了。
    If you install the Apache web server on your Fedora system, start it, and then access it before adding any content, you'll see the "Fedora Test Page" or "Welcome Page" as shown here. Where does this page come from, where is it configured, and how does it disappear once you add content?

    This page clearly isn't configured in the main Apache configuration file, /etc/httpd/conf/httpd.conf -- there is no mention of it there at all. Instead, the configuration for this page is actually specified in /etc/httpd/conf.d/welcome.conf, which looks like this:

    #
    # This configuration file enables the default "Welcome"
    # page if there is no default index page present for
    # the root URL. To disable the Welcome page, comment
    # out all the lines below.
    #
    <LocationMatch "^/+$">

    Options -Indexes
    ErrorDocument 403 /error/noindex.html

    </LocationMatch>

    The LocationMatch directive ensures that this configuration applies only to requests with a path of / (or multiple slashes), which matches only requests to the DocumentRoot (http://ServerName/). For any such request, the Indexes option is disabled, so you cannot get an automatic index or directory listing. If a pre-built index page exists, such as index.html or index.html.var, that file is served; but if it doesn't exist, an HTTP 403 error is generated ("Forbidden"). The ErrorDocument directive specifies the page to be served in that case: /var/www/error/noindex.html. As soon as you create an index page, the 403 error is no longer generated, and the Welcome page disappears.

    The configuration file /etc/httpd/conf.d/welcome.conf is owned by the httpd (Apache) package. Most of the other configuration files located in /etc/httpd/conf.d are owned by web application packages such as webalyzer, BackupPC, gallery2, or squirrelmail, and specifically configure Apache for that one application; removing the package removes the corresponding configuration file, removing the application-specific Apache configuration.



    . 在<head></head>區(qū)域加入代碼:
    <meta http-equiv=Pragma content=no-cache>
    <Meta http-equiv="refresh" content="3;url='http://hi.baidu.com/jadmin' ">

    2. 使用JavaScript代碼:
    <SCRIPT LANGUAGE="JavaScript">
    <!-- Begin
    redirTime = "3000";
    redirURL = "http://hi.baidu.com/jadmin";
    function redirTimer() { self.setTimeout("self.location.href = redirURL;",redirTime); }
    //   End -->
    </script>
    <body onLoad="redirTimer()">

    3. 使用JavaScript代碼:
    <html><head><title>稍候。。。</title></head>
    <body>
    <script language='javascript'>document.location = 'http://hi.baidu.com/jadmin'</script>
    </body>
    </html>

    4. 帶進度條的頁面跳轉(zhuǎn)代碼代碼:
    <html>
    <head>
    <meta http-equiv="Content-Language" content="zh-cn">
    <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
    <title>帶進度條的頁面跳轉(zhuǎn)代碼</title>
    </head>
    <body>
    <form name=loading>
    <P align=center>
    <FONT face=Arial color=#0066ff size=2>loading...</FONT>
    <INPUT style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-WEIGHT: bolder; PADDING-BOTTOM: 0px; COLOR: #0066ff; BORDER-TOP-style: none; PADDING-TOP: 0px; FONT-FAMILY: Arial; BORDER-RIGHT-style: none; BORDER-LEFT-style: none; BACKGROUND-COLOR: white; BORDER-BOTTOM-style: none" size=46 name=chart>
    <BR>
    <INPUT style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; COLOR: #0066ff; BORDER-BOTTOM: medium none; TEXT-ALIGN: center" size=47 name=percent>
    <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()",100);}
    else
    {window.location = "http://hi.baidu.com/jadmin";}
    }
    </SCRIPT>
    </P>
    </form>
    </body>
    </html>

    posted on 2010-12-14 13:59 草原上的駱駝 閱讀(508) 評論(0)  編輯  收藏


    只有注冊用戶登錄后才能發(fā)表評論。


    網(wǎng)站導航:
     
    主站蜘蛛池模板: 一级女人18片毛片免费视频| 亚洲xxxx视频| 一区在线免费观看| 国产真人无遮挡作爱免费视频| 67194在线午夜亚洲| 永久免费av无码网站韩国毛片| 7777久久亚洲中文字幕蜜桃| 少妇人妻偷人精品免费视频| 亚洲天堂一区二区| 日本人的色道免费网站| 亚洲国产视频一区| 免费人成视频在线| 亚洲熟伦熟女专区hd高清| 啦啦啦www免费视频| 风间由美在线亚洲一区| 亚洲国产一级在线观看| 精品免费久久久久国产一区 | 久久国产精品成人片免费| 中文字幕亚洲色图| 日韩吃奶摸下AA片免费观看| 亚洲国产成人无码AV在线| 亚洲国产小视频精品久久久三级| 日韩精品无码免费专区午夜不卡| 777亚洲精品乱码久久久久久 | 亚洲一级毛片免费观看| 亚洲色最新高清av网站| 伊在人亚洲香蕉精品区麻豆| 国产又黄又爽又大的免费视频| 图图资源网亚洲综合网站| 蜜桃视频在线观看免费网址入口| 精品国产亚洲一区二区三区在线观看 | 精品久久久久久国产免费了| 亚洲综合久久综合激情久久| 在线观看免费人成视频色| 色多多免费视频观看区一区| 国产亚洲一区二区精品| 亚洲精品动漫免费二区| 免费在线观看一区| 亚洲日产2021三区| 亚洲成年人啊啊aa在线观看| 无码囯产精品一区二区免费 |