• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

xampp 1.5.1 und htaccess

Status
Für weitere Antworten geschlossen.
G

general_xxx

Guest
hi leute.

ich möchte gerne ein verzeichnis innerhalb von htdocs/xampp schützen.

da habe ich eine htaccess datei erstelt :

Code:
AuthType Basic
AuthName Deucomp Corporation - intern
AuthUserFile ../htdocs/forbidden/.htpasswd
require valid-user

Doch der reagiert nicht im geringsten darauf. die htaccess datei befindet sich in dem ordner intern. wenn ich jetzt http://localhost/xampp/intern eingebe in den browser zeigt er mir trozdem ohne abfrage eines kennwortes den inhalt an.

muss man da erst etwas aktivieren oder so ?
 
Werbung:
vieleicht in der betreffenden config
Code:
Override AuthConfig
wenn ich mich richtig errinere
 
Werbung:
Code:
Options FileInfo AuthConfig Limit
steht da, muss ich was ändern ?
 
Code:
#
    # 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 none

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

</Directory>

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
    DirectoryIndex index.php index.php4 index.php3 index.cgi index.pl index.html 

index.htm index.shtml index.phtml
</IfModule>

#
# The following lines prevent .htaccess and .htpasswd files from being 
# viewed by Web clients. 
#
<FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
</FilesMatch>

steht in der httpd-datei

was soll ich da denn ändern ?
 
Hil Leute, habe das Problem gelöst mit der .htaccess und .htpasswd Datei, habe folgendes gemacht, bzw. in der httpd.conf geändert
in der Datei httpd.conf zeile 188 von None auf All stellen,

<Directory />
Options FollowSymLinks
AllowOverride All
Order deny,allow
Deny 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 "C:/apachefriends/xampp/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 Includes ExecCGI

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

und in der Zeile 223 auch auf All stellen.
Dann die .htaccess und .htpasswd Datei in den Verzeichnis, wo der Apache XAMPP installiert ist.
Dann den PC neu starten, und es sollte nach dem neustart funktionieren. Bei mir hat es geklappt.

Also nochmals Danke.


ps. ---> allgemeines problem von xampp 1.5.1
 
Werbung:
das ist kein problem. das ist ein sehr gutes feature das ich bei so einem software paket ueberhaupt nicht erwartet habe. und hat mal wieder ueberhaupt GAR NIX mit xampp zu tun - das ist nähmlich die config des httpd.

statt All wuerde ichs mal lieber mit AuthConfig versuchen -> sicherer
 
Status
Für weitere Antworten geschlossen.
Zurück
Oben