ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Vitalik Salomatin <chelroot74@mail.ru>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] доступ в Apache
Date: Wed, 03 Oct 2007 19:03:03 +0400
Message-ID: <E1Id5kd-000Hwm-00.chelroot74-mail-ru@f69.mail.ru> (raw)
In-Reply-To: <47036FD1.3010809@ukr.net>

А можно вообще паролем доступ закрыть:

создать папку   в /var/www/html/admin


создать папку /var/www/auth

Раскоментировать в 

/etc/httpd/conf/httpd.conf

LoadModule digest_auth_module modules/mod_auth_digest.so


AddModule mod_auth_digest.c

сохранить

в самый конец вставить 


<Directory /var/www/html/admin>
    AuthType Digest
    AuthName CHEL
    AuthDigestFile "/var/www/auth/digest-password"
    require	user vova pavel 

</Directory>




сохранить и перезапустить  apache


Добавить первого полдьзвателя с ключем -c

[root@localhost root]# htdigest -c /var/www/auth/digest-password CHELSI vova
Adding password for vova in realm CHEL
New password:  "ввевти пароль"
Re-type new password:  "повторить"
[root@localhost root]#

Добавление нового пользователя без указания ключа -c , иначе файл будет очищен

[root@localhost root]# htdigest /var/www/auth/digest-password CHELSI pavel
Adding user pavel in realm CHEL
New password:
Re-type new password:





 _______________________________________________
> community mailing list
> community@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/community


  reply	other threads:[~2007-10-03 15:03 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-03  9:04 Valery V. Rusnak
2007-10-03  9:24 ` Alexey Morsov
2007-10-03  9:34 ` Avramenko Andrew
2007-10-03  9:46   ` Valery V. Rusnak
2007-10-03  9:59     ` Alexey Morsov
2007-10-03 10:04       ` Valery V. Rusnak
2007-10-03 10:08       ` Valery V. Rusnak
2007-10-03 10:17     ` Avramenko Andrew
2007-10-03 10:32       ` Valery V. Rusnak
2007-10-03 15:03         ` Vitalik Salomatin [this message]
2007-10-04 19:59           ` Michael Shigorin
2007-10-03 10:25 ` [Comm] Adm Michael Shigorin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1Id5kd-000Hwm-00.chelroot74-mail-ru@f69.mail.ru \
    --to=chelroot74@mail.ru \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git