using relative paths and AllowOverride problem - help, plz...

Discussion in 'Apache' started by midix, Mar 6, 2007.

  1. #1
    I have to move between more computers often so I have made some kind of "portable" WAMP folder structure. I just copy my wamp folder to another pc and everything works without tweaking any config files.
    Well, I lied. One thing does not work.
    I have a line in httpd.conf:
    
    DocumentRoot "../../www/public/"
    Code (markup):
    it is ok, I checked through a Web browser.
    But I have also this default (and I would like to leave it as is for security reasons):
    
    # First, we configure the "default" to be a very restrictive set of 
    # features. # 
    <Directory /> 
    Options FollowSymLinks 
    AllowOverride None 
    </Directory>
    
    Code (markup):
    And If I want to allow .htaccess files with some overrides to work, I have following:

    <Directory "../../www/public/ovfolder/"> 
    AllowOverride All 
    </Directory>
    Code (markup):

    Bad news: this does not work! I cannot override anything in .htaccess if the folder "ovfolder". But it works fine if I give a full path to "ovfolder".

    Maybe I am doing something wrong? Could you please explain, how can I "AllowOverride All" for a folder in a relative path?

    Thanks.
     
    midix, Mar 6, 2007 IP