[horde] Apache Configuration, .htaccess - RewriteEngine not allowed here
Vilius Šumskas
vilius at lnk.lt
Fri Sep 2 23:26:11 UTC 2011
Sveiki,
Saturday, September 3, 2011, 12:48:42 AM, you wrote:
> Hi
> I'm trying to set up the new version of Horde, and although I've
> copied over my apache config exactly as the old one I'm getting an
> error after I install Horde 4 (through PEAR) and go to the URL to set it up.
> Basically, the browser returns a 500 Error.
> The Error log has:
> [Fri Sep 02 22:33:38 2011] [alert] [client 38.104.167.6]
> /usr/share/horde4/.htaccess: RewriteEngine not allowed here
> The contents of that .htaccess are:
> 1 allow from all
> 2
> 3 <IfModule mod_rewrite.c>
> 4 RewriteEngine On
> 5 RewriteCond %{REQUEST_FILENAME} !-d
> 6 RewriteCond %{REQUEST_FILENAME} !-f
> 7 RewriteRule ^(.*)$ rampage.php [QSA,L]
> 8 </IfModule>
> I didn't put that there - I'm not even sure what rampage.php does (except call some Horde classes).
> My virtual host looks like:
> 16 <VirtualHost *:80>
> 17 ServerAdmin root at domain1.co.uk
> 18 DocumentRoot /usr/share/horde4
> 19 ServerName webmail.domain.net
> 20 ErrorLog /var/log/apache2/logs/domain-webmail-error_log
> 21 CustomLog
> /var/log/apache2/logs/domain-webmail-access_log common
> 22 Alias /Microsoft-Server-ActiveSync /usr/share/horde4/rpc.php
> 23 # RewriteEngine on
> 24 # RewriteCond %{SERVER_PORT} ^80$
> 25 # RewriteRule ^(.*)$ https://%{SERVER_NAME}$1 [L,R]
> 26 # RewriteLog "/var/log/apache2/logs/rewrite.log"
> 27 # RewriteLogLevel 2
> 28 <Directory /usr/share/horde4>
> 29 AllowOverride AuthConfig Limit
> 30 Options +ExecCGI
> 31 <Files ~ "\.(inc|bak)$">
> 32 deny from all
> 33 </Files>
> 34 </Directory>
> 35 </VirtualHost>
> I haven't turned on the HTTPS force yet - which is why it's commented out.
> What did I do wrong, and how do I fix it? :)
Add Options FileInfo to AllowOverride.
--
Best regards,
Vilius
More information about the horde
mailing list