99麻豆久久久国产免费福利精品,国产精品成人国产乱,玖玖操,手机看片169,国产精彩视频在线观看,午夜亚洲福利视频,国产伦乱视频

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

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

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

2015.09.12 | 2311閱讀 | 0條評論 | 服務(wù)器配置

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

第一種:啟用 rewrite 和 .htaccess 設(shè)置

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

改為:LoadModule rewrite_module modules/mod_rewrite.so

.htaccess設(shè)置

windows里面這樣設(shè)置:AccessFileName htaccess  

linux里面這樣設(shè)置:AccessFileName .htaccess。

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

 

第二種:AllowOverride 的設(shè)置。

默認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ā)表評論

疏附县| 佛坪县| 亚东县| 郁南县| 漳平市| 镇江市| 普兰店市| 长泰县| 鹤峰县| 望奎县| 屏山县| 天水市| 恩施市| 稻城县| 汾阳市| 安龙县| 铜梁县| 石狮市| 玛曲县| 陇南市| 剑阁县| 安多县| 东光县| 江达县| 泽州县| 宝坻区| 榆社县| 麦盖提县| 阜平县| 华宁县| 长兴县| 巍山| 义马市| 萨嘎县| 静宁县| 临湘市| 南阳市| 绵阳市| 潮州市| 贵阳市| 宁乡县|