Koozali.org: home of the SME Server

If i added this to a custom_template would it work for .htac

Offline stiperstones

  • *
  • 177
  • +0/-0
    • http://www.stiperstones.com
If i added this to a custom_template would it work for .htac
« 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.
Stiperstones

http://wiki.contribs.org/Koozali_Foundation
Try the Wiki some great how's there

"My Licence".........

Don't report security issues here - Contact security at contribs dot org
Don't report problems here - Please report bugs @ http://bugs.contribs.org/
Don't ask the same question twice - Please search the forums, your question may have been asked before - Thank You.


Offline stiperstones

  • *
  • 177
  • +0/-0
    • http://www.stiperstones.com
If i added this to a custom_template would it work for .htac
« Reply #2 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.
Stiperstones

http://wiki.contribs.org/Koozali_Foundation
Try the Wiki some great how's there

"My Licence".........

Don't report security issues here - Contact security at contribs dot org
Don't report problems here - Please report bugs @ http://bugs.contribs.org/
Don't ask the same question twice - Please search the forums, your question may have been asked before - Thank You.