tutorials.de Buch-Aktion 05/2012
ERLEDIGT
JA
ANTWORTEN
1
ZUGRIFFE
561
EMPFEHLEN
  • An Twitter übertragen
  • An Facebook übertragen
AUF DIESES THEMA
ANTWORTEN
  1. #1
    PhoenixDH PhoenixDH ist offline Mitglied Platin
    Registriert seit
    Sep 2004
    Beiträge
    617
    Hab mir einen Apache eingerichtet und bin gerade dabei ein Script zu entwickeln, welches der Verwaltung der htacces Dateien dient !

    Jetzt wollte ich das Script testen, doch egal ob Verzeichnis mit oder ohne .htaccess Datei, ich komme immer rein !

    Da dachte ich an die Serverkonfiguration, das da was nicht stimmt. Hier mal meine aktuellen Einträge:
    Code :
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    
    # 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>
     
    #
    # UserDir: The name of the directory that is appended onto a user's home
    # directory if a ~user request is received.  Be especially careful to use
    # proper, forward slashes here.
    #
    # UserDir "My Documents/My Website"
     
    #
    # Control access to UserDir directories.  The following is an example
    # for a site where these directories are restricted to read-only.
    #
    # You must correct the path for the root to match your system's configured
    # user directory location, e.g. "C:/WinNT/profiles/*/My Documents/My Website"
    # or whichever, as appropriate.
    #
    #<Directory "C:/Documents and Settings/*/My Documents/My Website">
    #    AllowOverride FileInfo AuthConfig Limit
    #    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>
     
    #
    # DirectoryIndex: sets the file that Apache will serve if a directory
    # is requested.
    #
    # The index.html.var file (a type-map) is used to deliver content-
    # negotiated documents.  The MultiViews Option can be used for the
    # same purpose, but it is much slower.
    #
    DirectoryIndex index.php index.php4 index.php3 index.cgi index.pl index.html index.htm index.html.var index.phtml
     
    #
    # AccessFileName: The name of the file to look for in each directory
    # for access control information.  See also the AllowOverride directive.
    #
    AccessFileName .htaccess
     
    #
    # The following lines prevent .htaccess and .htpasswd files from being
    # viewed by Web clients.
    #
    <Files ~ "^\.ht">
        Order allow,deny
        Deny from all
    </Files>
     

  2. #2
    Avatar von Arne Buchwald
    Arne Buchwald Arne Buchwald ist offline Mitglied Diamant
    Registriert seit
    Jul 2001
    Ort
    Engeln [ Niedersachsen ]
    Beiträge
    3.317
    In dem von dir zitierten Abschnitt steht ja auch nicht, dass der Apache etwas schützen soll:

    zum Beispiel sowas hier:
    Code :
    1
    2
    3
    4
    
    AuthType Basic
    AuthName "Restricted Directory"
    AuthUserFile /path/to/.htpasswd
    Require valid-user

    Eine passende .htpasswd kannst du dir mit dem Apache beiliegenden Programm htpasswd erstellen. Der obige Inhalt muss als .htaccess-Datei in das zu schützende Verzeichnis.
     
    Die Politik ist ein Versuch der Politiker, zusammen mit dem Volk mit den Problemen fertig zu werden, die das Volk ohne die Politiker niemals gehabt hätte.
    Dieter Hildebrandt



    http://www.busoft.de - Managed Server, WebHosting (CRM, typo3, Windows), Server, Serverhousing in den Rechenzentren Frankfurt am Main, Hannover und Indien

Ähnliche Themen

  1. apache will nicht und .htaccess problem
    Von MJB_00000000002 im Forum Hosting & Webserver
    Antworten: 5
    Letzter Beitrag: 18.07.07, 22:05
  2. htaccess auf lokalem Server?
    Von D@nger im Forum Hosting & Webserver
    Antworten: 4
    Letzter Beitrag: 20.04.06, 14:10
  3. Problem mit Apache Zugriffsverwaltung mittels htaccess
    Von m3dusa im Forum Hosting & Webserver
    Antworten: 0
    Letzter Beitrag: 14.02.05, 21:39
  4. htaccess auf Lokalem Rechner
    Von Subwoover im Forum Hosting & Webserver
    Antworten: 17
    Letzter Beitrag: 05.07.04, 10:39
  5. Mails vom lokalem Apache Server****?
    Von Phreak im Forum PHP
    Antworten: 3
    Letzter Beitrag: 31.07.01, 19:17