久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      apache解析漏洞及修復(fù)方法

      apache對(duì)文件后綴的解析方法是”.”后邊的都是后綴,從后到前,如果后綴無(wú)效,會(huì)解析前一個(gè),例如 1.php.x1.x2.x3 他會(huì)先解析x3,不存在解析x2,不存在解析x1,都不存在就只能解析php了。如圖:

       apache解析漏洞及修復(fù)方法

      定義后綴,但是不可能所有后綴都定義吧?x1.x2.x3可以換成任意后綴

      例如1.php.a,.a沒(méi)有定義,apache不明白a是什么后綴,就向前解析,也就是去解析php。

      用偽靜態(tài)能解決這個(gè)問(wèn)題,重寫(xiě)類(lèi)似.php.*這類(lèi)文件

      打開(kāi)apache的httpd.conf

      找到LoadModule rewrite_module modules/mod_rewrite.so

      把#號(hào)去掉,重啟apache,在網(wǎng)站根目錄下建立.htaccess文件,代碼如下:

      <IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteRule .(php.|php3.) /index.php
      RewriteRule .(pHp.|pHp3.) /index.php
      RewriteRule .(phP.|phP3.) /index.php
      RewriteRule .(Php.|Php3.) /index.php
      RewriteRule .(PHp.|PHp3.) /index.php
      RewriteRule .(PhP.|PhP3.) /index.php
      RewriteRule .(pHP.|pHP3.) /index.php
      RewriteRule .(PHP.|PHP3.) /index.php
      </IfModule>

      可能會(huì)誤殺,對(duì)我來(lái)說(shuō)暫時(shí)也沒(méi)發(fā)現(xiàn)誤殺。根據(jù)自己要求修改自己定義的執(zhí)行php的后綴,用|隔開(kāi)就行。 /index.php可以換成你想要顯示的文件.

      效果如圖:

       

       
      apache解析漏洞及修復(fù)方法

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