久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      ubuntu隱藏index.php的方法

      ubuntu隱藏index.php的方法

      ubuntu隱藏index.php的方法

      ubuntu-apache下隱藏thinkphp入口文件index.php

      按照thinkphp手冊中來講,apache服務(wù)器下,隱藏thinkphp入口文件有3步:

      1.httpd.conf配置文件中加載了mod_rewrite.so模塊

      2.AllowOverride None 將None改為 All

      3.把下面的內(nèi)容保存為.htaccess文件放到應(yīng)用入口文件的同級目錄下:

      mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]

      ps:前兩項在apache配置文件中

      但在實際操作中發(fā)現(xiàn)幾個問題:

      1.在ubuntu下沒有httpd.conf配置文件,只有apache2.conf,據(jù)說前者是用戶自定義配置文件

      2.apache2.conf中沒有mod_rewrite.so(windows中把配置文件中包含這行的代碼注釋去掉即可完成配置)

      解決辦法:

      a.終端:a2enmod rewrite ,完成后重啟服務(wù)器

      b.做啟動鏈接(下次啟動自動加載)(我在執(zhí)行時提醒說已經(jīng)存在了):

      ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/rewrite.load

      重啟服務(wù)器

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號