四虎影视在线影院在线观看,小s货再浪些再咬紧点h,国产精品水嫩水嫩,97精产国品一二三产区

關(guān)于開(kāi)啟mod_rewrite的問(wèn)題

其實(shí)常見(jiàn)問(wèn)題里已經(jīng)說(shuō)明了如下:
9 是否支持rewrite?
可以肯定地回答,支持.有些同學(xué)在apache的安裝目錄下找不到mod_rewrite.so文件,總在問(wèn),為什么沒(méi)有這個(gè)文件或是不是不支持之類等等?
原因很簡(jiǎn)單的,不同的編譯方式就有不同的結(jié)果.如果是不是動(dòng)態(tài)方式編譯或添加的,是找不到這個(gè)文件的.也就是說(shuō),在靜態(tài)編譯是沒(méi)有這個(gè)文件的,而是直接編譯進(jìn)apache里了.
可以通過(guò)phpinfo信息里查看 apache2handler 的 Loaded Modules  部分,能看到有 mod_rewrite 模塊,即表示已支持.

但是有部分系統(tǒng)還是不能正常使用,原因可能是這樣,打開(kāi)httpd.conf,找到
<Directory "/www/wdlinux/httpd-2.2.16/htdocs">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride None

    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all

</Directory>

將 <Directory "/www/wdlinux/httpd-2.2.16/htdocs">
該為<Directory "/www/web/wdlinux">
將 AllowOverride None
該為 AllowOverride all
 

歡迎轉(zhuǎn)載,但請(qǐng)保留此信息
[我的Linux,讓Linux更易用] CentOS精簡(jiǎn)版,集成lamp,lnmp版,wdcp,wdcdn,wddns,一鍵安裝包,集群負(fù)載均衡LVS,智能DNS/CDN,性能優(yōu)化
本文連接:http://cd-genova.com/old/node/337

可以開(kāi)多一個(gè)目錄控制,加上 AllowOverride

可以開(kāi)多一個(gè)目錄控制,加上
AllowOverride all
就可以

此問(wèn)題已在新版wdcp修正,直接開(kāi)好站點(diǎn)就可以

此問(wèn)題已在新版wdcp修正,直接開(kāi)好站點(diǎn)就可以