Форум Flasher.ru

Форум Flasher.ru (http://www.flasher.ru/forum/index.php)
-   PHP (http://www.flasher.ru/forum/forumdisplay.php?f=20)
-   -   .htaccess + вход по паролю... (http://www.flasher.ru/forum/showthread.php?t=32420)

Класный перец 31.05.2002 12:07

.htaccess + вход по паролю...
 
.htaccess в который раз...

вопрос ламерский и задается не впервые но...

как все же правильно поставить пароль на директрию...


мой хтаксес был такой....

DirectoryIndex index.php

AuthType Basic
AuthName "Emter Me"
AuthUserFile .passlist
<Limit GET POST>
satisfy All
require file-owner
</Limit>

и таким ....


AuthType Basic
AuthName "Emter Me"
AuthUserFile .passlist
<Limit GET POST>
require user moryarty
</Limit>

и даже таким...

AuthType Basic
AuthName "Emter Me"
AuthUserFile .passlist
<Limit GET POST>
require valid-user moryarty
</Limit>

и все время пишет

[b]Authorization Required
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.[b]


файлик с паролями создан с помощю утилиты .htpasswd


дайте рабочий .htaccess - который пускает по паролю а не просит ввести правильный три раза и резко обламывает...

Arlekino 31.05.2002 12:29

Код:

AuthType Basic
AuthName CoolHacker
AuthUserFile полный путь до .htpasswd
<Limit GET>
require valid-user
</Limit>


Класный перец 31.05.2002 12:44


Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, perci.ru and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Apache/1.3.24 Server at www.perci.ru Port 80


не, не пускает...


а поле и реквайд- юзер и себя прописывал... нифига...


Часовой пояс GMT +4, время: 13:42.

Copyright © 1999-2008 Flasher.ru. All rights reserved.
Работает на vBulletin®. Copyright ©2000 - 2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Администрация сайта не несёт ответственности за любую предоставленную посетителями информацию. Подробнее см. Правила.