乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      Apache服務(wù)器配置默認(rèn)首頁文件名和網(wǎng)站路徑

       浸心閣 2016-01-20

      默認(rèn)首頁的配置:

            第一種:直接修改apache服務(wù)器的配置文件./conf/httpd.conf中的DirectoryIndex,如:(項(xiàng)目web以index.php為首頁) 

      <IfModule dir_module>
                              DirectoryIndex index.html index.php
                        </IfModule>

            第二種:apache服務(wù)器的配置文件./conf/httpd.conf中DirectoryIndex默認(rèn)不變?yōu)閕ndex.html,此時(shí)需要當(dāng)前項(xiàng)目下增加一個(gè)index.html文件,文件的內(nèi)容如下編輯:(項(xiàng)目web以index.php為首頁)

      index.html文件的內(nèi)容如下:

      <meta http-equiv="refresh" content="0; url=index.php">

            以上兩種方式,在地址欄中輸入http://localhost/web就可以直接訪問到index.php的頁面。

      默認(rèn)網(wǎng)站的配置:(項(xiàng)目以web為例)

            第一種:直接修改apache服務(wù)器的配置文件./conf/httpd.conf中的DocumentRoot和Directory,如:

      DocumentRoot "/usr/local/apache/htdocs/web"

      <Directory "/usr/local/apache/htdocs/web">

            第二種:不修改apache服務(wù)器的默認(rèn)配置文件httpd.conf,而是,修改./htdocs/目錄下的index.html文件:

      index.html文件的內(nèi)容如下:

      <meta http-equiv="refresh" content="0; url=/web">

             以上兩種方式,在地址欄中輸入http://localhost就可以直接訪問到web項(xiàng)目的網(wǎng)站。

      轉(zhuǎn)載請注明原文地址:http://www./apache/201404/9487.html

        本站是提供個(gè)人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點(diǎn)擊一鍵舉報(bào)。
        轉(zhuǎn)藏 分享 獻(xiàn)花(0

        0條評論

        發(fā)表

        請遵守用戶 評論公約

        類似文章 更多