КАК????
я млин уже заипался искать по инету как это делаицца...
инфы - 0
заранее спасибо за помостч
КАК????
я млин уже заипался искать по инету как это делаицца...
инфы - 0
заранее спасибо за помостч
BAC:инфы - 0
Инфы ноль, т.к. нужно искать описание не htTaccess, а htaccess.
Так что вперед на http://www.apache.org/
вот здесь можно скачать доку (самая нужная инфа)
http://unisatel.ru/upload/index.php?showfilesfordate=2003-2-20
ну а более подробную надо искать исходя из задач....
мне просто надо закрыть доступ к директории на моем unix хостинге и не более
BAC:мне просто надо закрыть доступ к директории на моем unix хостинге и не более
BAC:мне просто надо закрыть доступ к директории на моем unix хостинге и не более
########################################################################
# SECURITY / ACCESS CONTROL #
# If the web server's AllowOverride allows AUTHCONFIG to be overridden #
########################################################################
#
# Save both .htpasswd and .htgroup files in a directory above "documentroot" directory
# (e.g. not in or below /apache/htdocs) but could be below "serverroot" directory
# (e.g. below /apache).
# This will pop-up a user/password dialog box saying Realm =
AuthName "Restricted Area"
# AuthType is normally basic. Not very secure until "Digest" type becomes prevalent
AuthType basic
# If value of AuthUserFile doesn't begin with a slash, it is treated as
# relative to the ServerRoot (not DocumentRoot!)
AuthUserFile "/userhome/blahBlah/.htpasswd"
AuthGroupFile "/userhome/blahBlah/.htgroup"
# Each line of the user file contains a username followed by a colon, followed by the crypt()
# encrypted password. The behavior of multiple occurrences of the same user is undefined.
# You can generate a password file on your system by typing commands on the OS prompt as follows:
# htpasswd -c Filename username # Creates a password file 'Filename' with 'username'
# # as the first user. It will prompt for the new password.
# htpasswd Filename username2 # Adds or modifies in password file 'Filename' the 'username2'.
#
# Each line of the group file contains a groupname followed by a colon, followed by
# the member usernames separated by spaces. For example, put this on one line in the .htgroup file:
# mygroup: bob joe anne
# This set to off will forward a not-found userid to the next-in-line module for authentication.
# 'On' is the default It is better that way.
#AuthAuthoritative off
# Now, we allow specific users or groups to get in.
# require user joe john mary
require valid-user
require group family friends
# More Authentication related, rarely used
# AuthDBGroupFile
# AuthDBUserFile
# AuthDBAuthoritative
# AuthDBMGroupFile
# AuthDBMUserFile
# AuthDBMAuthoritative
# AuthDigestFile
# AuthDigestGroupFile
# AuthDigestQop
# AuthDigestNonceLifetime
# AuthDigestNonceFormat
# AuthDigestNcCheck
# AuthDigestAlgorithm
# AuthDigestDomain
# Using Digest Authentication
а вообще четние документации - 50$/час
BAC:xbr, и что это означает?
а вообще четние документации - 50$/час
это выдержка из прайс-листа сисадмина.
ErrorDocument 401 http://www.xxx.com/error.html
ErrorDocument 403 http://www.xxx.com/error.html
ErrorDocument 404 http://www.xxx.com/error.html
ErrorDocument 500 http://www.xxx.com/error.html
ErrorDocument 501 http://www.xxx.com/error.html
ErrorDocument 502 http://www.xxx.com/error.html
ErrorDocument 503 http://www.xxx.com/error.html
это закрытие сервака по ошибкам. можно так сделать.
что бы листинга не было при отсутствии индекса например.
а это пароль на директорию я например таким образом реализовывал.
это в httaccess должно быть
AuthUserFile /home/logs/ss1/ss1/.passwd
AuthName Members
AuthType Basic
require valid-user
в файле .passwd прописываешь имя пользователя и пароль.
если хочется закрыть доступ пользователям к папке - ее лучше всего создать рядом с wwwroot. тогда доступ будет возможен только скриптами или с фтп.
BAC:xbr, и что это означает?
а вообще четние документации - 50$/час
это означает что ты задаешь вопросы полно освещенные в документации, тем самым показывая свою лень. любой сисадмин будет рад помочь тебе и прочесть вслух доку за указанную цену.