中文字幕亚洲一区,69久久久久精品9999不卡片,亚洲国产日韩欧美在线看片,国产精品久久久久久久久岛国

龍巖易富通網絡科技有限公司

龍巖小程序開發,龍巖分銷系統

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

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

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

第一種:啟用 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>


贊 (

發表評論

主站蜘蛛池模板: 安宁市| 乐昌市| 罗山县| 武汉市| 延长县| 阿合奇县| 凤山市| 长兴县| 顺义区| 阿鲁科尔沁旗| 商洛市| 和顺县| 永德县| 雅安市| 新晃| 忻城县| 红安县| 乐昌市| 望江县| 凌海市| 贵阳市| 田林县| 石首市| 抚顺市| 琼结县| 广宗县| 乐清市| 北宁市| 溧水县| 沁源县| 郯城县| 紫云| 府谷县| 永年县| 海口市| 万宁市| 平原县| 辉南县| 图片| 汤原县| 周口市|