Einzelnen Beitrag anzeigen
Alt 13.06.2008, 10:50   #5
robi1a
Veteran
 
Registriert seit: 03.07.2000
Beiträge: 240


Standard

Hallo
Ja, genau das mit dem FollowSymlinks wollte ich machen.

asterix:/BUERO/http # ls -l
total 11
-rw-r--r-- 1 wwwrun root 1587 May 5 17:56 admin.html
lrwxrwxrwx 1 root root 25 Jun 13 09:29 doku -> /BUERO/samba/Install/EDV/
-rw-r--r-- 1 wwwrun root 720 May 5 17:55 index.html
-rw-r--r-- 1 wwwrun root 1136 Jun 13 09:28 linuxdoc.html
-rw-r--r-- 1 wwwrun root 319 Jul 26 2004 mail.html

doku ist der Symlink ausserhalb DoumentRoot
asterix:/BUERO/http # ls -l /BUERO/samba/Install/
total 41
drwxrwsr-x 3 admin users 1024 May 15 20:21 EDV

apache config:
DocumentRoot "/BUERO/http"

<Directory "/BUERO/http">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<Directory "/BUERO/samba/Install">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>

Beim Aufruf des entsprechenden Links kommt folgendes:
Im apache error_log
Symbolic link not allowed or link target not accessible: /BUERO/http/doku, referer: http://asterix/linuxdoc.html

Im Browser:
Zugriff verweigert
Error 403
robi1a ist offline   Mit Zitat antworten