* [Comm] vhosts и AuthType
@ 2008-11-15 8:38 Ilis
2008-11-15 9:02 ` Boris Savelev
0 siblings, 1 reply; 3+ messages in thread
From: Ilis @ 2008-11-15 8:38 UTC (permalink / raw)
To: ALT Linux Community general discussions
Есть два виртуалхоста, для них есть
/etc/httpd/conf/vhosts.d/altus.conf
===8<===========
<VirtualHost *>
ServerName www.altus.rk1.ru
# ServerAlias example.com
DocumentRoot /var/www/vhosts/www.altus.rk1.ru/html
</VirtualHost>
<VirtualHost *>
ServerName ha.altus.rk1.ru
# ServerAlias example.com
DocumentRoot /var/www/vhosts/ha.altus.rk1.ru/html
#
# Auth (!!!вариант №1!!!)
#
# AuthType Basic
# AuthName "Login and password required"
# AuthUserFile /var/www/vhosts/ha.altus.rk1.ru/HaAuth/.htpasswd
# Require user homeacc
#
# Auth (!!!вариант №2!!!)
#
# AllowOverride AuthConfig
</VirtualHost>
===8<===========
Получаю сообщение
в первом варианте
httpd: Syntax error on line 19 of /etc/httpd/conf/vhosts.d/altus.conf:
httpd: AuthType not allowed here
во втором авторизацию переписал в
/var/www/vhosts/ha.altus.rk1.ru/html/.htaccess
но она не работает, видимо, из-за AllowOverride None
в /etc/httpd/conf/httpd.conf, но попытка его переопределить
в /etc/httpd/conf/vhosts.d/altus.conf тоже не работает:
httpd: Syntax error on line 19 of /etc/httpd/conf/vhosts.d/altus.conf:
httpd: AllowOverride not allowed here
Совсем уже запутался...
Мне надо сделать авторизацию по паролю только в домене ha., и, желательно,
на весь домен, без .htaccess в каждом каталоге...
Как мне это сделать?
--
Кругликов Илья
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Comm] vhosts и AuthType
2008-11-15 8:38 [Comm] vhosts и AuthType Ilis
@ 2008-11-15 9:02 ` Boris Savelev
2008-11-15 9:13 ` Ilis
0 siblings, 1 reply; 3+ messages in thread
From: Boris Savelev @ 2008-11-15 9:02 UTC (permalink / raw)
To: ALT Linux Community general discussions
> Как мне это сделать?
Попробуйте заключить все про авторизацию в <Location /> "Про
аворизацию" </Location>.
--
С уважением, Борис Савельев
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Comm] vhosts и AuthType
2008-11-15 9:02 ` Boris Savelev
@ 2008-11-15 9:13 ` Ilis
0 siblings, 0 replies; 3+ messages in thread
From: Ilis @ 2008-11-15 9:13 UTC (permalink / raw)
To: ALT Linux Community general discussions
15 ноября 2008 г. 14:02 пользователь Boris Savelev
<boris.savelev@gmail.com> написал:
> Попробуйте заключить все про авторизацию в <Location /> "Про
> аворизацию" </Location>.
>
Спасибо, помогло!
--
Кругликов Илья
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-11-15 9:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-15 8:38 [Comm] vhosts и AuthType Ilis
2008-11-15 9:02 ` Boris Savelev
2008-11-15 9:13 ` Ilis
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