• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

~/public_html verfügbar machen

Durch Eingabe der Fehlermeldung (komplett) in Google kam ich auf die Idee, daß es an einer verbogenen .htaccess liegen könnte.
Vielleicht wäre auch ein Blick in die Logfiles unter /var/log/apache2 sinnvoll und erhellend.

Nachtrag: Poste mal den Inhalt der /etc/apache2/mod_userdir.conf.
 
/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 SymLinksIfOwnerMatch 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>
 
und was wolltest du von /var/log/apache2 ???
access_log
Flicht


Nachtrag

Thu Apr 06 20:04:40 2006] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Thu Apr 06 20:04:40 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec2)
[Thu Apr 06 20:04:41 2006] [notice] Apache/2.0.54 (Linux/SUSE) configured -- resuming normal operations
[Thu Apr 06 20:06:38 2006] [error] [client 213.54.183.137] Directory index forbidden by rule: /srv/www/htdocs/
[Thu Apr 06 20:06:39 2006] [error] [client 213.54.183.137] File does not exist: /srv/www/htdocs/favicon.ico
[Fri Apr 07 03:00:16 2006] [notice] caught SIGTERM, shutting down
[Fri Apr 07 15:11:18 2006] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Fri Apr 07 15:11:18 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec2)
[Fri Apr 07 15:11:19 2006] [notice] Apache/2.0.54 (Linux/SUSE) configured -- resuming normal operations
[Fri Apr 07 15:11:24 2006] [error] [client 85.212.40.110] Directory index forbidden by rule: /srv/www/htdocs/
[Fri Apr 07 15:11:25 2006] [error] [client 85.212.40.110] File does not exist: /srv/www/htdocs/favicon.ico
[Fri Apr 07 15:14:17 2006] [error] [client 192.168.2.20] Directory index forbidden by rule: /srv/www/htdocs/
[Sun Aug 06 00:50:27 2006] [error] [client 192.168.2.20] unable to include potential exec "include/bottom.html" in parsed file /usr/share/apache2/error/HTTP_FORBIDDEN.html.var
[Sun Aug 06 00:50:27 2006] [error] [client 192.168.2.20] File does not exist: /srv/www/htdocs/favicon.ico, referer: http://gerleg.dvrdns.org/~gerleg/index.htm
[Sun Aug 06 00:50:27 2006] [error] [client 192.168.2.20] unable to include potential exec "include/top.html" in parsed file /usr/share/apache2/error/HTTP_NOT_FOUND.html.var, referer: http://gerleg.dvrdns.org/~gerleg/index.htm
[Sun Aug 06 00:50:27 2006] [error] [client 192.168.2.20] unable to include potential exec "include/bottom.html" in parsed file /usr/share/apache2/error/HTTP_NOT_FOUND.html.var, referer: http://gerleg.dvrdns.org/~gerleg/index.htm
[Sun Aug 06 00:50:28 2006] [error] [client 192.168.2.20] client denied by server configuration: /home/gerleg/public_html/index.htm
[Sun Aug 06 00:50:28 2006] [error] [client 192.168.2.20] unable to include potential exec "include/top.html" in parsed file /usr/share/apache2/error/HTTP_FORBIDDEN.html.var
[Sun Aug 06 00:50:28 2006] [error] [client 192.168.2.20] unable to include potential exec "include/bottom.html" in parsed file /usr/share/apache2/error/HTTP_FORBIDDEN.html.var
[Sun Aug 06 00:50:28 2006] [error] [client 192.168.2.20] File does not exist: /srv/www/htdocs/favicon.ico, referer: http://gerleg.dvrdns.org/~gerleg/index.htm
[Sun Aug 06 00:50:28 2006] [error] [client 192.168.2.20] unable to include potential exec "include/top.html" in parsed file /usr/share/apache2/error/HTTP_NOT_FOUND.html.var, referer: http://gerleg.dvrdns.org/~gerleg/index.htm
[Sun Aug 06 00:50:28 2006] [error] [client 192.168.2.20] unable to include potential exec "include/bottom.html" in parsed file /usr/share/apache2/error/HTTP_NOT_FOUND.html.var, referer: http://gerleg.dvrdns.org/~gerleg/index.htm
[Sun Aug 06 00:50:28 2006] [error] [client 192.168.2.20] client denied by server configuration: /home/gerleg/public_html/index.htm
[Sun Aug 06 00:50:28 2006] [error] [client 192.168.2.20] unable to include potential exec "include/top.html" in parsed file /usr/share/apache2/error/HTTP_FORBIDDEN.html.var
[Sun Aug 06 00:50:28 2006] [error] [client 192.168.2.20] unable to include potential exec "include/bottom.html" in parsed file /usr/share/apache2/error/HTTP_FORBIDDEN.html.var
[Sun Aug 06 00:50:28 2006] [error] [client 192.168.2.20] File does not exist: /srv/www/htdocs/favicon.ico, referer: http://gerleg.dvrdns.org/~gerleg/index.htm
[Sun Aug 06 00:50:28 2006] [error] [client 192.168.2.20] unable to include potential exec "include/top.html" in parsed file /usr/share/apache2/error/HTTP_NOT_FOUND.html.var, referer: http://gerleg.dvrdns.org/~gerleg/index.htm
[Sun Aug 06 00:50:28 2006] [error] [client 192.168.2.20] unable to include potential exec "include/bottom.html" in parsed file /usr/share/apache2/error/HTTP_NOT_FOUND.html.var, referer: http://gerleg.dvrdns.org/~gerleg/index.htm
[Sun Aug 06 00:50:29 2006] [error] [client 192.168.2.20] client denied by server configuration: /home/gerleg/public_html/index.htm
[Sun Aug 06 00:50:29 2006] [error] [client 192.168.2.20] unable to include potential exec "include/top.html" in parsed file /usr/share/apache2/error/HTTP_FORBIDDEN.html.var
[Sun Aug 06 00:50:29 2006] [error] [client 192.168.2.20] unable to include potential exec "include/bottom.html" in parsed file /usr/share/apache2/error/HTTP_FORBIDDEN.html.var
[Sun Aug 06 00:50:29 2006] [error] [client 192.168.2.20] File does not exist: /srv/www/htdocs/favicon.ico, referer: http://gerleg.dvrdns.org/~gerleg/index.htm
[Sun Aug 06 00:50:29 2006] [error] [client 192.168.2.20] unable to include potential exec "include/top.html" in parsed file /usr/share/apache2/error/HTTP_NOT_FOUND.html.var, referer: http://gerleg.dvrdns.org/~gerleg/index.htm
[Sun Aug 06 00:50:29 2006] [error] [client 192.168.2.20] unable to include potential exec "include/bottom.html" in parsed file /usr/share/apache2/error/HTTP_NOT_FOUND.html.var, referer: http://gerleg.dvrdns.org/~gerleg/index.htm
[Sun Aug 06 00:51:58 2006] [error] [client 192.168.2.20] client denied by server configuration: /home/gerleg/public_html/index.htm
[Sun Aug 06 00:51:58 2006] [error] [client 192.168.2.20] unable to include potential exec "include/top.html" in parsed file /usr/share/apache2/error/HTTP_FORBIDDEN.html.var
[Sun Aug 06 00:51:58 2006] [error] [client 192.168.2.20] unable to include potential exec "include/bottom.html" in parsed file /usr/share/apache2/error/HTTP_FORBIDDEN.html.var
[Sun Aug 06 00:56:10 2006] [error] [client 192.168.2.20] client denied by server configuration: /home/gerleg/public_html/index.htm
[Sun Aug 06 00:56:10 2006] [error] [client 192.168.2.20] unable to include potential exec "include/top.html" in parsed file /usr/share/apache2/error/HTTP_FORBIDDEN.html.var
[Sun Aug 06 00:56:10 2006] [error] [client 192.168.2.20] unable to include potential exec "include/bottom.html" in parsed file /usr/share/apache2/error/HTTP_FORBIDDEN.html.var
[Sun Aug 06 00:56:12 2006] [error] [client 192.168.2.20] client denied by server configuration: /home/gerleg/public_html/index.htm
[Sun Aug 06 00:56:12 2006] [error] [client 192.168.2.20] unable to include potential exec "include/top.html" in parsed file /usr/share/apache2/error/HTTP_FORBIDDEN.html.var
[Sun Aug 06 00:56:12 2006] [error] [client 192.168.2.20] unable to include potential exec "include/bottom.html" in parsed file /usr/share/apache2/error/HTTP_FORBIDDEN.html.var
[Sun Aug 06 00:57:44 2006] [error] [client 192.168.2.20] client denied by server configuration: /home/gerleg/public_html/index.htm
[Sun Aug 06 00:57:44 2006] [error] [client 192.168.2.20] unable to include potential exec "include/top.html" in parsed file /usr/share/apache2/error/HTTP_FORBIDDEN.html.var
[Sun Aug 06 00:57:44 2006] [error] [client 192.168.2.20] unable to include potential exec "include/bottom.html" in parsed file /usr/share/apache2/error/HTTP_FORBIDDEN.html.var
[Sun Aug 06 00:57:46 2006] [error] [client 192.168.2.20] client denied by server configuration: /home/gerleg/public_html/index.htm
[Sun Aug 06 00:57:46 2006] [error] [client 192.168.2.20] unable to include potential exec "include/top.html" in parsed file /usr/share/apache2/error/HTTP_FORBIDDEN.html.var
[Sun Aug 06 00:57:46 2006] [error] [client 192.168.2.20] unable to include potential exec "include/bottom.html" in parsed file /usr/share/apache2/error/HTTP_FORBIDDEN.html.var
[Sun Aug 06 00:57:46 2006] [error] [client 192.168.2.20] client denied by server configuration: /home/gerleg/public_html/index.htm
[Sun Aug 06 00:57:46 2006] [error] [client 192.168.2.20] unable to include potential exec "include/top.html" in parsed file /usr/share/apache2/error/HTTP_FORBIDDEN.html.var
[Sun Aug 06 00:57:46 2006] [error] [client 192.168.2.20] unable to include potential exec "include/bottom.html" in parsed file /usr/share/apache2/error/HTTP_FORBIDDEN.html.var
[Sun Aug 06 00:57:49 2006] [error] [client 192.168.2.20] unable to include potential exec "include/top.html" in parsed file /usr/share/apache2/error/HTTP_METHOD_NOT_ALLOWED.html.var
[Sun Aug 06 00:57:49 2006] [error] [client 192.168.2.20] unable to include potential exec "include/bottom.html" in parsed file /usr/share/apache2/error/HTTP_METHOD_NOT_ALLOWED.html.var
[Sun Aug 06 01:00:16 2006] [notice] caught SIGTERM, shutting down
[Sun Aug 06 01:00:17 2006] [notice] Apache/2.0.54 (Linux/SUSE) configured -- resuming normal operations
[Sun Aug 06 01:00:30 2006] [error] [client 192.168.2.20] client denied by server configuration: /home/gerleg/public_html/index.htm
[Sun Aug 06 01:00:30 2006] [error] [client 192.168.2.20] unable to include potential exec "include/top.html" in parsed file /usr/share/apache2/error/HTTP_FORBIDDEN.html.var
[Sun Aug 06 01:00:30 2006] [error] [client 192.168.2.20] unable to include potential exec "include/bottom.html" in parsed file /usr/share/apache2/error/HTTP_FORBIDDEN.html.var
[Sun Aug 06 03:00:05 2006] [notice] caught SIGTERM, shutting down
[Sun Aug 06 08:52:36 2006] [notice] Apache/2.0.54 (Linux/SUSE) configured -- resuming normal operations
[Sun Aug 06 09:23:10 2006] [error] [client 192.168.2.20] unable to include potential exec "include/top.html" in parsed file /usr/share/apache2/error/HTTP_METHOD_NOT_ALLOWED.html.var
[Sun Aug 06 09:23:10 2006] [error] [client 192.168.2.20] unable to include potential exec "include/bottom.html" in parsed file /usr/share/apache2/error/HTTP_METHOD_NOT_ALLOWED.html.var
[Sun Aug 06 11:13:21 2006] [error] [client 192.168.2.20] unable to include potential exec "include/top.html" in parsed file /usr/share/apache2/error/HTTP_METHOD_NOT_ALLOWED.html.var
[Sun Aug 06 11:13:21 2006] [error] [client 192.168.2.20] unable to include potential exec "include/bottom.html" in parsed file /usr/share/apache2/error/HTTP_METHOD_NOT_ALLOWED.html.var
[Sun Aug 06 11:14:58 2006] [error] [client 192.168.2.20] client denied by server configuration: /home/gerleg/public_html/index.htm
[Sun Aug 06 11:14:58 2006] [error] [client 192.168.2.20] unable to include potential exec "include/top.html" in parsed file /usr/share/apache2/error/HTTP_FORBIDDEN.html.var
[Sun Aug 06 11:14:58 2006] [error] [client 192.168.2.20] unable to include potential exec "include/bottom.html" in parsed file /usr/share/apache2/error/HTTP_FORBIDDEN.html.var
[Sun Aug 06 11:29:41 2006] [error] [client 192.168.2.20] unable to include potential exec "include/top.html" in parsed file /usr/share/apache2/error/HTTP_METHOD_NOT_ALLOWED.html.var
[Sun Aug 06 11:29:41 2006] [error] [client 192.168.2.20] unable to include potential exec "include/bottom.html" in parsed file /usr/share/apache2/error/HTTP_METHOD_NOT_ALLOWED.html.var
 
Hi,

normalerweise, d.h. wenn du mit YaSt Apache installiert hast:

Firefox starten

in die Befehlszeile: file:///home/benutzername/public_html

wenn da etwas liegt, dann wird dir das Apache artig angezeigt.

O.K.?

PS: benutzername ist der Name mit dem du dich einlogst
 
Hi.
Die Antwort ist ein wenig Spät, aber das hilft dir vielleicht weiter,
solltest du es noch nciht hinbekommen haben:

öffne die Datei /etc/apache2/htdocs.con und gebe dort folgendes ein:

Code:
<Directory /home/*/public_html>
    Options None
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>

Dann sollte es wieder gehen.
Aber nicht vergessen: den Apache mit httpd2 -k resart neu zu starten!

Hoffe, das ich dir noch helfen konnte.
gruss
Boyker
 
Oben