Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> .htaccess
SET
post
Post #1





Grupa: Zarejestrowani
Postów: 75
Pomógł: 0
Dołączył: 21.07.2004

Ostrzeżenie: (0%)
-----


.htaccess
  1. <?php
  2. ErrorDocument 401 /strona%201/index.php
  3.  
  4. AuthUserFile /strona%201/admin/.htpass
  5. AuthGroupFile /dev/null
  6. AuthName &#092;"Nazwa\"
  7. AuthType Basic
  8. require valid-user
  9. ?>


.htpass (wygenerowany przez htpasswd)
  1. <?php
  2. tomek:$apr1$jU......$.4Kv9ewR.UTsvfYchMiVd.
  3. ?>


otwieram katalog -> wyswietla się form logowania -> wpisuje nazwa uz i haslo -> i nic ?

windows xp,

z góry thx, (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
SET
post
Post #2





Grupa: Zarejestrowani
Postów: 75
Pomógł: 0
Dołączył: 21.07.2004

Ostrzeżenie: (0%)
-----


zmieniłem i jak dam anuluj to mnie nie przekierowywuje na strone główną ? (/strona%201/index.php -> to przekierowało poprawnie), po drugie wpisuje nazwe uz i haslo -> daje ok i znowu pojawia sie formularz logowania ?

httpd
Kod
<Directory "C:\Apache\Apache2\htdocs">
    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>


Ten post edytował SET 21.12.2004, 20:23:21
Go to the top of the page
+Quote Post

Posty w temacie
- SET   .htaccess   21.12.2004, 19:07:47
- - dr_bonzo   http://httpd.apache.org/docs-2.0/howto/auth.html ...   21.12.2004, 19:22:26
- - SET   zmieniłem i jak dam anuluj to mnie nie przekierowy...   21.12.2004, 19:44:06


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 11.10.2025 - 17:19