PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Apache userdir-Konfiguration



ganesch
30.08.05, 16:06
Hallo zusammen,

ich möchte gerne userdir mit Apache2 nutzen, bekomme aber dummerweise einen

Forbidden
You don't have permission to access /~newdomain.com/ on this server
Fehler.

Meine userdir.conf sieht so aus:

NameVirtualHost xx.xxx.xxx.xx

<VirtualHost users.mydomain.com>
ServerName users.mydomain.com
DocumentRoot /var/www/vhcs2/gui
<Directory /var/www/vhcs2/gui>
Options Indexes Includes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<IfModule mod_userdir.c>
UserDir /var/www/virtual/*/htdocs
UserDir disabled root

<Directory /var/www/virtual/*/htdocs>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
</Directory>
</IfModule>
</VirtualHost>


In meinem apache error.log steht

Symbolic link not allowed: /var/www/virtual/newdomain.com/htdocs/index.php
Muss ich hier mit open_basedir arbeiten oder welche Möglichkeiten gibt es, um den symbolischen Link zu erlauben?

Schöne Grüsse
Nick

Tomek
30.08.05, 20:18
Ändere die Zeile:

Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
in:

Options MultiViews Indexes FollowSymLinks IncludesNoExec
Lies dazu auch bitte das Apache-Handbuch:
http://httpd.apache.org/docs/2.0/

ganesch
30.08.05, 20:51
Hallo Tomek,

danke für deine Antwort.

Das hatte ich auch schon versucht, funktioniert aber leider nicht - auch nach einem Restart von Apache.

Ich habe schon ein schönes Apache2-Buch, das ich mir nach und nach zu Gemüte führen werde, doch wenn jemand sonst noch einen Vorschlag hat, wäre das eine feine Sache :D

Gruss
Nick

Tomek
31.08.05, 08:50
Poste bitte nochmal deine Konfiguration und die Fehlermeldung aus dem Apache-Errorlog.

Roger Wilco
31.08.05, 22:04
Gibt es denn einen Systembenutzer namens "newdomain.com"?

PS: Du weißt, was mod_userdir macht, oder?