动物总动员电影免费观看,国产一线天在线观看,亚洲成人精品久久,www.夜色av.com,caoporn国产一区二区,国产精品毛片一区视频播不卡,91av456

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

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

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

2015.09.12 | 2177閱讀 | 0條評(píng)論 | 服務(wù)器配置

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

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

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

改為:LoadModule rewrite_module modules/mod_rewrite.so

.htaccess設(shè)置

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

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

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

 

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

默認(rèn)AllowOverride 為AllowOverride none。把這個(gè)改為:AllowOverride All。如果配置了多個(gè)虛擬目錄需在每個(gè)目錄里面開啟,實(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ā)表評(píng)論

岳池县| 蕲春县| 闽清县| 金华市| 宝丰县| 河东区| 平远县| 许昌市| 彩票| 南江县| 兴和县| 随州市| 青田县| 广安市| 房产| 巴林左旗| 黄石市| 奇台县| 永顺县| 太仆寺旗| 登封市| 罗甸县| 左贡县| 易门县| 长泰县| 芜湖县| 常山县| 海原县| 陇南市| 镇巴县| 楚雄市| 彭州市| 来凤县| 盖州市| 崇文区| 洱源县| 扬中市| 林西县| 康乐县| 泰安市| 新昌县|