欧美一级色视频,簧片在线免费看,美日韩在线,成人观看网站a,亚洲欧美在线一区二区,欧美操穴,欧美综合专区

龍巖易富通網(wǎng)絡科技有限公司

龍巖小程序開發(fā),龍巖分銷系統(tǒng)

apache下htaccess不起作用,linux,windows詳解

2015.09.12 | 2483閱讀 | 0條評論 | 服務器配置

可能出現(xiàn)下面這三種的錯誤可能性: 

第一種:啟用 rewrite 和 .htaccess 設置

rewrite設置:找到apache的配置文件httpd.conf文件,找到:#LoadModule rewrite_module modules/mod_rewrite.so去掉前面的#號。

改為:LoadModule rewrite_module modules/mod_rewrite.so

.htaccess設置

windows里面這樣設置:AccessFileName htaccess  

linux里面這樣設置:AccessFileName .htaccess。

linux比windows里面文件名前面多了一個點。如果沒找到AccessFileName自己在httpd.conf文件最后面加上。

 

第二種:AllowOverride 的設置。

默認AllowOverride 為AllowOverride none。把這個改為:AllowOverride All。如果配置了多個虛擬目錄需在每個目錄里面開啟,實例:

<VirtualHost *:80>
        DocumentRoot "D:SvnTracsvnSVNRepositorywwwroot"
        ServerName 127.0.0.1:80
 
        DirectoryIndex index.html index.htm index.php index.shtml
       <Directory "D:SvnTracsvnSVNRepositorywwwroot">
           Options Indexes FollowSymLinks
           AllowOverride ALL
           Order allow,deny
           Allow from all
       </Directory>
</VirtualHost>

<VirtualHost 127.0.0.2:80>
        DocumentRoot "D:/SvnTrac/svn/SVNRepository/www/"
        ServerName 127.0.0.2:80
 
        DirectoryIndex index.html index.htm index.php index.shtml
       <Directory "D:/SvnTrac/svn/SVNRepository/www/">
           Options Indexes FollowSymLinks
           AllowOverride ALL
           Order allow,deny
           Allow from all
       </Directory>
</VirtualHost>


贊 (

發(fā)表評論

四川省| 南岸区| 林芝县| 凤山市| 宜兰市| 来宾市| 溧水县| 和田市| 信阳市| 游戏| 资源县| 嘉义县| 藁城市| 莱阳市| 建平县| 云阳县| 五华县| 永寿县| 浙江省| 枞阳县| 修武县| 安丘市| 呼伦贝尔市| 佛山市| 西平县| 绥芬河市| 阳信县| 双桥区| 邢台市| 绥阳县| 封丘县| 赤峰市| 蓬莱市| 巴塘县| 嘉兴市| 成武县| 边坝县| 金乡县| 黄浦区| 临泉县| 平原县|