From: Ilis <ilis.krou@gmail.com> To: "ALT Linux Community general discussions" <community@lists.altlinux.org> Subject: [Comm] vhosts и AuthType Date: Sat, 15 Nov 2008 13:38:46 +0500 Message-ID: <91dc8dbf0811150038i6c131ee0u32ac9c9374b71e50@mail.gmail.com> (raw) Есть два виртуалхоста, для них есть /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 в каждом каталоге... Как мне это сделать? -- Кругликов Илья
next reply other threads:[~2008-11-15 8:38 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-11-15 8:38 Ilis [this message] 2008-11-15 9:02 ` Boris Savelev 2008-11-15 9:13 ` Ilis
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=91dc8dbf0811150038i6c131ee0u32ac9c9374b71e50@mail.gmail.com \ --to=ilis.krou@gmail.com \ --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