.htaccess - confixx 3 - error 403

Apache, Lighttpd, nginx, Cherokee
Post Reply
3dsoft
Posts: 14
Joined: 2003-07-03 14:28
 

.htaccess - confixx 3 - error 403

Post by 3dsoft »

Hallo,

ich möchte .htaccess (mode_rewrite) verwenden, und das komische ist, dass die .htaccess Datei für die erste Domain (web0) 100% funktioniert und bei allen darauffolgenden Domains eine 403 error Meldung kommt???


Server: Root Server Strato; Suse 9.0, Confixx 3.0

Error log:
Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden:
Teilauszug von Confixx_vhhost.conf:
<VirtualHost 81.169.175.139:80>
ServerName http://www.DOMAIN-0.de

DocumentRoot /srv/www/htdocs/web0/html
SuexecUserGroup web0 ftponly
ScriptAlias /cgi-bin/ /srv/www/htdocs/web0/html/cgi-bin/
php_admin_value open_basedir /srv/www/htdocs/web0/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /srv/www/htdocs/web0/phptmp/
php_admin_value safe_mode off
</VirtualHost>

<VirtualHost 81.169.175.139:80>
ServerName web1.h2710.serverkompetenz.net
ServerAlias DOMAIN-1.de http://www.DOMAIN-1.de

DocumentRoot /srv/www/htdocs/web1/html
SuexecUserGroup web1 ftponly
ScriptAlias /cgi-bin/ /srv/www/htdocs/web1/html/cgi-bin/
php_admin_value open_basedir /srv/www/htdocs/web1/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /srv/www/htdocs/web1/phptmp/
php_admin_value safe_mode off
</VirtualHost>

wie gesagt, ich verstehe nicht warum die .htaccess tadellos unter der domain-0 (also der 1. domain) arbeitet, und bei allen anderen Domains nicht.
Dabei habe ich bei der Anlegung der domains über confixx keine Unterschiede gemacht


weiter oben steht in dieser datei noch

Code: Select all

<Directory "/srv/www/htdocs">
  <Files ~ "^.ht">
    deny from all
  </Files>
  AllowOverride None
  AllowOverride Indexes  AuthConfig Limit  FileInfo
  Options None
  Options +FollowSymLinks +Includes
</Directory>

<Directory "/srv/www/htdocs/web1/html">
  Options -FollowSymLinks -SymLinksIfOwnerMatch
  <IfModule mod_access.c>
    Allow from all
  </IfModule>
</Directory>

warum ist web0 nicht gelistet?
mc5000
Posts: 308
Joined: 2004-06-17 11:56
Location: Köln
 

mmmhhhh!

Post by mc5000 »

Die 'Option' FollowSymLinks oder SymLinksIfOwnerMatch ist abgeschaltet!

Versuch mal in der .htaccess-Datei ganz oben folgende Zeile einfügen

Code: Select all

Options +SymLinksIfOwnerMatch
oder
Options +FollowSymLinks
Beachte: AllowOverride Options
steht bei Dir auf none! -> Ã?ndern

oder in dem <Directory>-Abschnitt des betreffenden Verzeichnisses folgendes einfügen

Code: Select all

Options +SymLinksIfOwnerMatch
oder
Options +FollowSymLinks
r00ty
Posts: 747
Joined: 2003-03-17 15:32
 

Re: .htaccess - confixx 3 - error 403

Post by r00ty »

solltest du es zum laufen bringen poste hier bitte die Lösung - ich kämpfe nämlich auch damit....
3dsoft
Posts: 14
Joined: 2003-07-03 14:28
 

Re: .htaccess - confixx 3 - error 403

Post by 3dsoft »

Options +SymLinksIfOwnerMatch
oder
Options +FollowSymLinks

geht leider nicht, es folgt eine 500 error meldung
( The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.)


Bei <web0> habe ich ja auch keinen zusatz (wie oben) einfügen müssen.

Folgende Error Meldung erscheint nach Modifikation der .htaccess von <web1>

Code: Select all

/srv/www/htdocs/web1/html/cms/.htaccess: Options not allowed here
hint?
3dsoft
Posts: 14
Joined: 2003-07-03 14:28
 

Re: .htaccess - confixx 3 - error 403

Post by 3dsoft »

okay hier ist die lösung



in der datei confixx_vhost.conf folgendes ändern

Code: Select all

<Directory "/srv/www/htdocs/web1/html">
  Options -FollowSymLinks -SymLinksIfOwnerMatch
  <IfModule mod_access.c>
    Allow from all
  </IfModule>
</Directory>
die minus zeichen in plus zeichen abändern, also

Code: Select all

<Directory "/srv/www/htdocs/web1/html">
  Options +FollowSymLinks +SymLinksIfOwnerMatch
  <IfModule mod_access.c>
    Allow from all
  </IfModule>
</Directory>
ABER, ich schätze mal dass confixx dies beim nächsten mal überschreiben wird!

Also eine neue xyz.conf erstellen ( z.B. web1.conf) und das directory mit den + zeichen integrieren.

Danach in der httpd.conf nach der confixx_vhost.conf. includieren.


frohe ostern
mc5000
Posts: 308
Joined: 2004-06-17 11:56
Location: Köln
 

jep

Post by mc5000 »

das meinte ich ... :lol:

du kannst confixx diese option aber unter dem punkt httpd-spezial mitgeben und auch für alle domains (auch die zukünftigen) eintragen - dann muss es nicht per hand gewartet werden ...

wenn es eh nur bei einem der fall ist -> egal! 8)

Auch Dir Frohe Ostern!
Post Reply