htaccess unter apache2.1

zeroc

Well-Known Member
Hi,

ich hab jetzt nen paar Tage im I-Net gesucht und dann noch einige Member ( Herzlichen Dank an Meiner und DanielSeufert) befragt, die mich dann doch noch auf die Lösung gestoßen haben.

Problem:
Ich wollte ein Ordner mit .htaccess schützen - diesbezüglich gibt es eine sehr gute Anleitung unter SelfHTML - und hab die .htaccess richtig angelegt und die .htpasswd richtig angelegt, aber es hat einfach nicht funktioniert.

Lösung:
Man muss in der httpd.conf noch unter
Code:
<Directory "/usr/local/www/data">

    #
    # 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.1/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
    #
    [SIZE=2]AllowOverride All[/SIZE]

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

Den Part Allow Override auf All setzen, dann funktioniert auch das mit dem
htaccess.

mfg Daniel
 
moin,
ich würde nur ein "AllowOverride AuthConfig" machen, ansonsten können deine user sehr viel anstellen ;-)

gruß
thorben
 
Zurück
Oben