Internal Server Error wegen .htaccess

Alles, was den Apache betrifft, kann hier besprochen werden.

Internal Server Error wegen .htaccess

Postby xilef » 17. January 2013 08:56

Hallo,
ich hoffe ich bin hier mit meiner Frage richtig.
Ich habe ein Problem mit Apache2. Ich möchte OwnCloud installieren, wenn ich die entsprechende URL aufrufe entsteht aber ein Internal Server Error.
Die zugehörige Fehlermeldung lautet:
Code: Select all
[alert] [client xxx.xx.xx.xxx] /var/www/web0/html/owncloud/.htaccess: Options not allowed here, referer: http://test.vps9880.alfahosting-vps.de/


In der .htaccess steht:
Code: Select all
ErrorDocument 403 /core/templates/403.php
ErrorDocument 404 /core/templates/404.php
<IfModule mod_php5.c>
php_value upload_max_filesize 513M
php_value post_max_size 513M
php_value memory_limit 512M
<IfModule env_module>
  SetEnv htaccessWorking true
</IfModule>
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteRule ^.well-known/host-meta /public.php?service=host-meta [QSA,L]
RewriteRule ^.well-known/carddav /remote.php/carddav/ [R]
RewriteRule ^.well-known/caldav /remote.php/caldav/ [R]   
RewriteRule ^apps/calendar/caldav.php remote.php/caldav/ [QSA,L]
RewriteRule ^apps/contacts/carddav.php remote.php/carddav/ [QSA,L]
RewriteRule ^apps/([^/]*)/(.*\.(css|php))$ index.php?app=$1&getfile=$2 [QSA,L]
RewriteRule ^remote/(.*) remote.php [QSA,L]
</IfModule>
<IfModule mod_mime.c>
AddType image/svg+xml svg svgz
AddEncoding gzip svgz
</IfModule>
Options -Indexes


Das Modul mod_rewrite habe ich aktiviert.

Wie gesagt, ich war auf der suche nach einem Forum, das sich mit Apache auseinander setzt. Nachdem es bei diesem Problem um einen Webserver geht ist xampp nicht installiert (wobei ich es lokal zum entwickeln nutze).
Ich bin für jeden Tipp dankbar.
Viele Grüße, xilef
xilef
 
Posts: 1
Joined: 17. January 2013 08:40
Operating System: Win7 & Debian 6

Re: Internal Server Error wegen .htaccess

Postby Altrea » 17. January 2013 18:11

Hallo xilef,

xilef wrote:Ich bin für jeden Tipp dankbar.

Die Fehlermeldung sagt schon alles aus. Die Direktive Options ist für dieses Verzeichnis in .htaccess Dateien nicht erlaubt.
Was in .htaccess Dateien erlaubt ist und was nicht, definiert die AllowOverride Direktive.

mit freundlichen Grüßen,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64


Return to Apache

Who is online

Users browsing this forum: No registered users and 218 guests