DocumentRoot funzt net...

Alles, was den Apache betrifft, kann hier besprochen werden.

DocumentRoot funzt net...

Postby leiferikson » 24. July 2007 17:06

Hallo,

ich möchte den DocumentRoot meiner xampp umlegen in ein Userverzeichnis
/Users/torsten/Documents/test/

in der httpd.conf habe ich folgendes eingetragen:
Code: Select all
DocumentRoot "/Users/torsten/Documents/test"

...

<Directory "/Users/torsten/Documents/test">



Leider ignoriert der apache das irgendwie und nun gibt es immer die meldung "403 forbidden"
Welche Rechte müssen im "test" gesetzt werden? und der Rest geht auch ncht mehr. Kann mir das bitte jemand etwas verdeutlichen?
--
osx 10.4.11
Apache/1.3.33
System Darwin macbook 8.10.1 Darwin Kernel Version 8.10.1:
2GHz intel Core Duo
leiferikson
 
Posts: 21
Joined: 24. July 2007 11:52
Location: Küste

Postby tobiasr » 24. July 2007 17:54

Schreibe in die .htaccess Datei im Ordner /Users/torsten/Documents/test
Options +Indexes
User avatar
tobiasr
 
Posts: 40
Joined: 14. July 2007 20:27

Postby leiferikson » 25. July 2007 11:11

hm, das habe ich probiert aber es geht nicht. Danke trotzdem. Welche Dateirechte müssen da vergeben sein?
--
osx 10.4.11
Apache/1.3.33
System Darwin macbook 8.10.1 Darwin Kernel Version 8.10.1:
2GHz intel Core Duo
leiferikson
 
Posts: 21
Joined: 24. July 2007 11:52
Location: Küste

Postby Stepke-DSL » 25. July 2007 11:27

Moin,

Schreib mal in dein Directory Block folgendes:

Code: Select all
Order allow,deny
Allow from all


Zu den Dateirechten: Die Öffentlichkeit darf lesen und ausführen...

Wobei das Ausführen nicht zwingend sein muss...


MfG Stepke
Stepke-DSL
 
Posts: 313
Joined: 12. July 2007 16:08
Operating System: Win XP Pro SP3 + SuSe Linux

Postby leiferikson » 25. July 2007 12:31

also es will immer noch nicht. hier mal mehr infos:

das ist mein Arbeitsverzeichnis:

drwxr-xr-x 4 torstenb torstenb 136 Jul 25 11:35 test

in dem testverzeichnis ist die .htaccess:

-rw-r--r-- 1 torstenb torstenb 18 Jul 25 11:36 .htaccess

in der .htaccess steht drin:

Code: Select all
Options +Indexes


und so ist der Directory in der httpd.conf eingestellt:

Code: Select all
DocumentRoot "/Users/torstenbahr/Documents/test"
#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features. 
#
<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/Users/torstenbahr/Documents/test">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks ExecCGI Includes

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride AuthConfig

    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all

</Directory>


wer nun weiterhelfen dem ist grosser Dank sicher!!!
--
osx 10.4.11
Apache/1.3.33
System Darwin macbook 8.10.1 Darwin Kernel Version 8.10.1:
2GHz intel Core Duo
leiferikson
 
Posts: 21
Joined: 24. July 2007 11:52
Location: Küste

Postby Stepke-DSL » 25. July 2007 13:55

Hast du den Apache auch neu gestartet nach den Änderungen?

Was steht im Log-File?
Stepke-DSL
 
Posts: 313
Joined: 12. July 2007 16:08
Operating System: Win XP Pro SP3 + SuSe Linux

Postby leiferikson » 26. July 2007 09:23

apache start log ist leer.
Es ist zum verrücktwerden. Wenn ich den DocumentRoot belasse wie in der Installation vorgegeben funktioniert es. Nehme ich ein Verzeichnis aus meinem User-Home Directory gibs den 403...Ich dreh hier bald am Rad...da s kann dich so schwer nicht sein. Als ich einen Apache auf einem Linux hatte funktionierte das doch auch...
--
osx 10.4.11
Apache/1.3.33
System Darwin macbook 8.10.1 Darwin Kernel Version 8.10.1:
2GHz intel Core Duo
leiferikson
 
Posts: 21
Joined: 24. July 2007 11:52
Location: Küste

errorlog:

Postby leiferikson » 26. July 2007 09:29

Code: Select all
[Tue Jul 24 16:48:59 2007] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Jul 24 16:48:59 2007] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Tue Jul 24 16:48:59 2007] [notice] suEXEC mechanism enabled (wrapper: /Applications/xampp/xamppfiles/bin/suexec)
[Tue Jul 24 16:49:00 2007] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Jul 24 16:49:00 2007] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Tue Jul 24 16:49:00 2007] [notice] Digest: generating secret for digest authentication ...
[Tue Jul 24 16:49:00 2007] [notice] Digest: done
[Tue Jul 24 16:49:00 2007] [notice] Apache/2.2.4 (Unix) mod_ssl/2.2.4 OpenSSL/0.9.8e DAV/2 PHP/5.2.3 configured -- resuming normal operations
[Tue Jul 24 16:49:38 2007] [error] [client 192.168.24.5] (13)Permission denied: access to /xampp/index.php denied
[Tue Jul 24 16:49:42 2007] [error] [client 192.168.24.5] (13)Permission denied: access to /xampp/index.php denied
[Tue Jul 24 16:49:46 2007] [error] [client 192.168.24.5] (13)Permission denied: access to /xampp/index.php denied
[Tue Jul 24 16:54:57 2007] [error] [client 127.0.0.1] (13)Permission denied: access to /xampp/index.php denied
[Tue Jul 24 16:55:01 2007] [error] [client 127.0.0.1] (13)Permission denied: access to /xampp/index.php denied
/Applications/xampp/xamppfiles/logs/error_log


Das mit dem Namen war mir bisher immer egal, funktionerte ja. Aber wieso er immer noch indem /xampp/index.php herumsucht kapier ich nicht.[/code]
--
osx 10.4.11
Apache/1.3.33
System Darwin macbook 8.10.1 Darwin Kernel Version 8.10.1:
2GHz intel Core Duo
leiferikson
 
Posts: 21
Joined: 24. July 2007 11:52
Location: Küste

Postby Stepke-DSL » 26. July 2007 09:48

Hmmm, also, wenn du es so hast, wie es oben steht und den Apache neu gestartet hast, dann müsste es funktionieren. Ich sehe zumindest keinen Fehler...
Stepke-DSL
 
Posts: 313
Joined: 12. July 2007 16:08
Operating System: Win XP Pro SP3 + SuSe Linux

Postby leiferikson » 26. July 2007 10:26

na trodzdem danke. Vielleicht fällt ja noch jemanden was ein.
--
osx 10.4.11
Apache/1.3.33
System Darwin macbook 8.10.1 Darwin Kernel Version 8.10.1:
2GHz intel Core Duo
leiferikson
 
Posts: 21
Joined: 24. July 2007 11:52
Location: Küste


Return to Apache

Who is online

Users browsing this forum: No registered users and 16 guests