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

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

龍巖小程序開(kāi)發(fā),龍巖分銷(xiāo)系統

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

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

可能出現下面這三種的錯誤可能性: 

第一種:?jiǎ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里面文件名前面多了一個(gè)點(diǎn)。如果沒(méi)找到AccessFileName自己在httpd.conf文件最后面加上。

 

第二種:AllowOverride 的設置。

默認AllowOverride 為AllowOverride none。把這個(gè)改為:AllowOverride All。如果配置了多個(gè)虛擬目錄需在每個(gè)目錄里面開(kāi)啟,實(shí)例:

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

深泽县| 南靖县| 陕西省| 卓资县| 合肥市| 洪湖市| 乌拉特中旗| 商水县| 聊城市| 板桥市| 闻喜县| 徐闻县| 新密市| 怀远县| 巴彦县| 柳河县| 乌恰县| 昌吉市| 新乡市| 盖州市| 江津市| 新余市| 易门县| 监利县| 黄陵县| 木兰县| 福清市| 石屏县| 来宾市| 密山市| 丰宁| 桃园县| 类乌齐县| 旅游| 江门市| 睢宁县| 清河县| 铁力市| 东乌| 宜丰县| 瓮安县|