ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Aleksey Avdeev <solo@solin.spb.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] Apache2 user-based security
Date: Mon, 26 Jan 2009 17:18:58 +0300
Message-ID: <497DC652.2010108@solin.spb.ru> (raw)
In-Reply-To: <f7a739430901260520w79440e66jae69d7e11098dd83@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1090 bytes --]

Eugene Prokopiev пишет:
> Здравствуйте!
> 
...
> Добавляю авторизацию:
> 
> # cat /etc/httpd2/conf/mods-start.d/999-folder.conf
> alias=yes
> authz_host=yes
> auth=yes
> 
> # cat /etc/httpd2/conf/extra-available/folder.conf
> <IfModule alias_module>
>   Alias /folder /var/www/folder/
> </IfModule>
> <Directory "/var/www/folder/">
>   <IfModule authz_host_module>
>     Order allow,deny
>     Allow from all
>   </IfModule>
>   <IfModule auth_module>
>     AuthName "Folder security"
>     AuthType Basic
>     AuthUserFile /var/www/folder-passwd
>     Require valid-user
>   </IfModule>
> </Directory>
> 
> Инициализирую новую конфигурацию:
> 
> # htpasswd2 -bc /var/www/folder-passwd user upwd
> # a2chkconfig
> # service httpd2 restart
> 
> И на http://localhost/folder/ вижу "It works!" - а хотелось увидеть
> запрос логина/пароля. Комментирую <IfModule authz_host_module> - и
> вижу "Access forbidden!"
> 
> Что я делаю неправильно?

   Это не <https://bugzilla.altlinux.org/show_bug.cgi?id=16777> случаем?

-- 

С уважением. Алексей.



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 552 bytes --]

  reply	other threads:[~2009-01-26 14:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-26 13:20 Eugene Prokopiev
2009-01-26 14:18 ` Aleksey Avdeev [this message]
2009-01-26 16:06   ` Eugene Prokopiev
2009-01-26 16:29     ` Eugene Prokopiev
2009-01-27  5:34 ` Eugene Prokopiev

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=497DC652.2010108@solin.spb.ru \
    --to=solo@solin.spb.ru \
    --cc=sysadmins@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 sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/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 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

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


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