Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: stiperstones on January 22, 2006, 03:31:28 PM

Title: If i added this to a custom_template would it work for .htac
Post by: stiperstones on January 22, 2006, 03:31:28 PM
Hi All
If i added this to a custom_template would it work for .htaccess files in ibays for the likes of wordpress,gallery,mambo
and any other cms software that uses .htaccess directives.

Taken from the appache website

http://httpd.apache.org/docs/1.3/mod/core.html#allowoverride

look for <Directory>  directive

If multiple (non-regular expression) directory sections match the directory (or its parents) containing a document, then the directives are applied in the order of shortest match first, interspersed with the directives from the .htaccess files. For example, with

    <Directory />         " i take it this is the default
    AllowOverride None         " for sme apache.conf
    </Directory>
   
    <Directory /home/*>
    AllowOverride FileInfo
    </Directory>
   
for access to the document /home/web/dir/doc.html the steps are:

    * Apply directive AllowOverride None (disabling .htaccess files).
    * Apply directive AllowOverride FileInfo (for directory /home/web).
    * Apply any FileInfo directives in /home/web/.htaccess    

----------------------------------------------------------------------------------

Would this work if i put it in a custom template

    <Directory /home/e-smith/files/ibays/your_ibay_name/html/*
    AllowOverride FileInfo
    </Directory>

have not tried it yet wanted to pass it by more knowledged people than myself still learning.

Using sme7.0pre.
Title: Re: If i added this to a custom_template would it work for .
Post by: raem on January 22, 2006, 05:22:02 PM
http://mirror.contribs.org/smeserver/contribs//rmitchell/smeserver/howto/htaccess%20configuration%20with%20custom%20templates%20HOWTO%20for%20sme%20server.htm
Title: If i added this to a custom_template would it work for .htac
Post by: stiperstones on January 22, 2006, 07:22:59 PM
Hi Ray
I have read your howto this is how i came to this <directive> AllowOverride FileInfo looking at apache documentation this could allow that .htaccess file. will need to make the custom_template following you howto but i dont want to password protect the ibay/html/what ever folder .
I are trying to use the mod-rewrite directive to use the contained .htaccess file contained in the cms content manegement software with using this  AllowOverride FileInfo which should overide the default config for that ibay.