久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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)站

      htaccess如何禁止目錄執(zhí)行php方法

      htaccess禁止目錄執(zhí)行php的方法:首先在要禁止的目錄下新建一個(gè)htaccess文件;然后輸入內(nèi)容為“php_flag engine off”并保存即可。

      htaccess如何禁止目錄執(zhí)行php方法

      推薦:《PHP視頻教程》

      .htaccess禁止目錄執(zhí)行php方法

      系統(tǒng):centos 5.9

      環(huán)境:lamp

      apache禁止后綴的方法:

      這里就只演示下怎么禁止php執(zhí)行,其他的稍微簡(jiǎn)單改了就好.在你要禁止的目錄下新建個(gè).htaccess,內(nèi)容為:

      代碼如下

      <FilesMatch ".(php.|php3.)"> Order Allow,Deny Deny from all </FilesMatch>

      或者

      在需要的目錄下建立一個(gè) .htaccess 文件并在里面寫(xiě)上一行

      代碼如下

      php_flag engine off

      當(dāng)然你也可以寫(xiě)進(jìn)httpd.conf里,但那樣的話就要重啟apache了,不是很好.

      附nginx禁止目錄執(zhí)行php

      代碼如下

      location ~ /(attachments|upload)/.*.(php|php5)?$ { deny all; }

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