PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Apache folgt symlinks nicht



TheDarkRose
07.12.09, 02:31
Ich hab bei meinen Apache mod_userdir aktiviert und dort unter den Options FollowSymLinks eingetragen. der link wurde auch erzeugt

patspo@tuxi:~/public_html> ls -l
insgesamt 0
lrwxrwxrwx 1 patspo users 29 7. Dez 02:02 simply-happy -> /home/patspo/simply-happy/web
aber wenn ich jz im browser http://tuxi/~patspo/ aufrufe dann zeigt er mir nichts an. woran kann das liegen?

Hier noch die mod_userdir.conf

patspo@tuxi:~/public_html> cat /etc/apache2/mod_userdir.conf
#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
#

<IfModule mod_userdir.c>
# Note that the name of the user directory ("public_html") cannot easily be
# changed here, since it is a compile time setting. The apache package
# would have to be rebuilt. You could work around by deleting
# /usr/sbin/suexec, but then all scripts from the directories would be
# executed with the UID of the webserver.
#
# To rebuild apache with another setting you need to change the
# %userdir define in the spec file.

# not every user's directory should be visible:
UserDir disabled root

# to enable UserDir only for a certain set of users, use this instead:
#UserDir disabled
#UserDir enabled user1 user2


# the UserDir directive is actually used inside the virtual hosts, to
# have more control
#UserDir public_html

<Directory /home/*/public_html>

AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes FollowSymLinks IncludesNoExec

<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>

<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>

</Directory>

</IfModule>

marce
07.12.09, 07:16
Du solltest vermutlich http://tuxi/~patspo/simply-happy aufrufen...

TheDarkRose
07.12.09, 10:06
Nö, da bekomm ich nen Error 500 Internal Server Error



Was mich noch verwirrt, ist, das wenn ich alles was jetzt unter ~/simply-happy/* liegt, wie zuvor im Verzeichnis ~/public_html/simply-happy liegen hab, zeigt mir das IndexListing vom Apache alle Verzeichnisse außer das web/ Verzeichniss an und wie ich das dann aufrufen (mit http://tuxi/~patspo/simply-happy/web) wollte bekamm ich auch einen Error 500


Edit: Aber hauptsache Win 7 kann dem Symlink auf der Sambashare folgen ^^

marce
07.12.09, 10:28
Dann würde ich mal einen Blick in's Logfile werfen und die komplette Konfig anschauen - evtl. beißt sich da was.

TheDarkRose
07.12.09, 10:46
Achja, die lieben Logs. War wohl schon spät, hab nicht mehr daran gedacht. im web/ Verzeichnis ist eine .htaccess gelegen mit einer Options Direktive. Das war dann der Fehler.

Lustigerweiße blendet Apache beim Directory Listing Verzeichnisse aus, welche z.b wie bei mir eine Fehlerhafte .htaccess datei haben. denn jetzt wird unter http://tuxi/~patspo/ der Ordner simply-happy angezeigt. Das selbe dürfte der Grund sein, warum ich auch das web/ verzeichniss nicht im listing sehen konnte, wie noch alles unter ~/public_html/ lag.