On Thu, 23 Apr 2009, Sven Mönnich wrote:

mod_rewrite sollte da helfen. nur wie. google überfordert mich völlig. gehts auch ohne mod_rewrite?

es braucht gar kein mod_rewrite dafuer

versuchs mal hiermit
http://httpd.apache.org/docs/2.0/mod/mod_dir.html

und damit ist man schon mal auf der richtigen Spur aber nur zur Haelfte

Ok, es funktioniert teilweise, jetzt wird der inhalt des verzeichnisses ausgegeben und die index.php wird trotz directoryindex ignoriert. ideen ?

zum einen in der httpd.conf anpassen:

---------------------------------------------------
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
    DirectoryIndex index.html index.php index.htm
</IfModule>
---------------------------------------------------

damit apache weiss, welche Files alle in welcher Reihenfolge fuer ein
directory zustaendig sind

in den Faellen, wo nichts aus DirectoryIndex matcht, kann apache auch eigenstaendig ein Inhaltsverzeichnis generieren

---------------------------------------------------
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/srv/httpd/htdocs">
    #
    # 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

    #
    # 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 All

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

</Directory>
---------------------------------------------------



cu Frank

--
Lasset uns zur excursio perpotationis schreiten
Mit anderen Worten "wir schuetten uns dicht".
Nicht schlecht. Ich hatte keine schlagkraeftige Uebersetzung fuer
"Ausflug zwecks Trinkens im Uebermass" gefunden.      -- aus dasr
--
----------------------------------------------------------------------------
PUG - Penguin User Group Wiesbaden - http://www.pug.org

Antwort per Email an