Index: [Article Count Order] [Thread]

Date:  Wed, 11 Oct 2006 20:30:46 +0200
From:  Dennis <dennis (at mark) mixfans.org>
Subject:  [coba-e:07530] fixing .htaccess allowoverride
To:  coba-e (at mark) bluequartz.org
Message-Id:  <452D3856.1060106 (at mark) mixfans.org>
In-Reply-To:  <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAARDhjVlX2aEuqbKE5moo4BsKAAAAQAAAArDbqKwflPUCjwhvZwibgTwEAAAAA (at mark) xnet.com.mx>
References:  <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAARDhjVlX2aEuqbKE5moo4BsKAAAAQAAAArDbqKwflPUCjwhvZwibgTwEAAAAA (at mark) xnet.com.mx>
X-Mail-Count: 07530

how to fix the problem that .htaccess is not allowed in a vsite ?

<Directory "/home/.sites/143/site2/web">
AllowOverride All
</Directory>

above is working for normal site


<Directory "/home/.sites/143/site2/vsites/feeds/web/">
AllowOverride All
</Directory>

<Directory "/home/sites/www.aroundmyroom.com/vsites/feeds/web/">
AllowOverride All
</Directory>

but including this for a vsite is not working
server is restarted
but still the apache 500 error
/var/log/httpd/error_log shows:
.htaccess: RewriteEngine not allowed here

part of .htaccess is

# Disable MultiViews: we want the real thing
# http://httpd.apache.org/docs-2.0/mod/mod_negotiation.html#multiviews

# Options -MultiViews
# AddDefaultCharset utf-8

<IfModule mod_rewrite.c>
  RewriteEngine on
   
  # If we have a file or a directory match then lets set the
  # static variable
  RewriteCond %{REQUEST_FILENAME} -f [OR]
  RewriteCond %{REQUEST_FILENAME} -d
  RewriteRule ^.*$ - [E=static:1]
 
  SetEnvIf Request_URI "/css/" static
  SetEnvIf Request_URI "/img/" static
  SetEnvIf Request_URI "/admin/" static
  SetEnvIf Request_URI "/extlib/" static
  SetEnvIf Request_URI "/test/" static
  SetEnvIf Request_URI "/themes/" static
  SetEnvIf Request_URI "/plugins/" static
  # You can add other lines here to have static content
  # under a gregarius installation.