* [Sysadmins] vhosts в apache2
@ 2007-03-06 11:03 Alexey Sidorov
2007-03-06 15:00 ` [Sysadmins] vhosts Б apache2 Aleksey Avdeev
0 siblings, 1 reply; 8+ messages in thread
From: Alexey Sidorov @ 2007-03-06 11:03 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
Здравствуйте.
Помогите настроить vhosts by name
прописываю:
/etc/httpd2/httpd2.conf:
Listen *:80
<Directory "/var/www/vhosts">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Include conf/vhost.d/A.*.conf
/etc/httpd2/conf/vhost.d/A.1.conf:
<VirtualHost *:80>
DocumentRoot /var/www/vhosts/serv1
ServerName serv1
</VirtualHost>
/etc/httpd2/conf/vhost.d/A.2.conf:
<VirtualHost *:80>
DocumentRoot /var/www/vhosts/serv2
ServerName serv2
</VirtualHost>
получаю:
alex:alexlin ~$ sudo service httpd2 restart
Stopping httpd2 service: [
DONE ]
Checking configuration sanity for httpd2: [Tue Mar 06 13:56:53 2007] [warn] _default_ VirtualHost
overlap on port 80, the first has precedence
Syntax OK
[
DONE ]
Starting httpd2 service: [Tue Mar 06 13:56:53 2007] [warn] _default_ VirtualHost overlap on port 80,
the first has precedence
Что не так?
--
Alexey Sidorov
mailto:alex@reutman.ru
JID: alex@reutman.ru
ICQ: 5052225
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Sysadmins] vhosts Б apache2
2007-03-06 11:03 [Sysadmins] vhosts в apache2 Alexey Sidorov
@ 2007-03-06 15:00 ` Aleksey Avdeev
2007-03-07 8:11 ` Alexey Sidorov
0 siblings, 1 reply; 8+ messages in thread
From: Aleksey Avdeev @ 2007-03-06 15:00 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
[-- Attachment #1.1: Type: text/plain, Size: 1385 bytes --]
Alexey Sidorov пишет:
> Здравствуйте.
> Помогите настроить vhosts by name
>
> прописываю:
> /etc/httpd2/httpd2.conf:
> Listen *:80
> <Directory "/var/www/vhosts">
> Options Indexes FollowSymLinks
> AllowOverride None
> Order allow,deny
> Allow from all
> </Directory>
> Include conf/vhost.d/A.*.conf
>
> /etc/httpd2/conf/vhost.d/A.1.conf:
> <VirtualHost *:80>
> DocumentRoot /var/www/vhosts/serv1
> ServerName serv1
> </VirtualHost>
>
> /etc/httpd2/conf/vhost.d/A.2.conf:
> <VirtualHost *:80>
> DocumentRoot /var/www/vhosts/serv2
> ServerName serv2
> </VirtualHost>
>
> получаю:
> alex:alexlin ~$ sudo service httpd2 restart
> Stopping httpd2 service: [
> DONE ]
> Checking configuration sanity for httpd2: [Tue Mar 06 13:56:53 2007] [warn] _default_ VirtualHost
> overlap on port 80, the first has precedence
> Syntax OK
> [
> DONE ]
> Starting httpd2 service: [Tue Mar 06 13:56:53 2007] [warn] _default_ VirtualHost overlap on port 80,
> the first has precedence
>
> Что не так?
1. Какая версия apache2 используется?
2. поищите _default_ в /etc/httpd2/conf
PS: mod_ssl стоит и настроен?
--
С уважением. Алексей.
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 482 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 481 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Sysadmins] vhosts Б apache2
2007-03-06 15:00 ` [Sysadmins] vhosts Б apache2 Aleksey Avdeev
@ 2007-03-07 8:11 ` Alexey Sidorov
2007-03-16 22:51 ` Michael Shigorin
0 siblings, 1 reply; 8+ messages in thread
From: Alexey Sidorov @ 2007-03-07 8:11 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
Aleksey Avdeev пишет:
> Alexey Sidorov пишет:
>> Здравствуйте.
>> Помогите настроить vhosts by name
>>
>> прописываю:
>> /etc/httpd2/httpd2.conf:
>> Listen *:80
>> <Directory "/var/www/vhosts">
>> Options Indexes FollowSymLinks
>> AllowOverride None
>> Order allow,deny
>> Allow from all
>> </Directory>
>> Include conf/vhost.d/A.*.conf
>>
>> /etc/httpd2/conf/vhost.d/A.1.conf:
>> <VirtualHost *:80>
>> DocumentRoot /var/www/vhosts/serv1
>> ServerName serv1
>> </VirtualHost>
>>
>> /etc/httpd2/conf/vhost.d/A.2.conf:
>> <VirtualHost *:80>
>> DocumentRoot /var/www/vhosts/serv2
>> ServerName serv2
>> </VirtualHost>
>>
>> получаю:
>> alex:alexlin ~$ sudo service httpd2 restart
>> Stopping httpd2 service: [
>> DONE ]
>> Checking configuration sanity for httpd2: [Tue Mar 06 13:56:53 2007] [warn] _default_ VirtualHost
>> overlap on port 80, the first has precedence
>> Syntax OK
>> [
>> DONE ]
>> Starting httpd2 service: [Tue Mar 06 13:56:53 2007] [warn] _default_ VirtualHost overlap on port 80,
>> the first has precedence
>>
>> Что не так?
>
> 1. Какая версия apache2 используется?
>
> 2. поищите _default_ в /etc/httpd2/conf
>
> PS: mod_ssl стоит и настроен?
>
Разобрался.
Забыл прописать NameVirtualHost *:80 в /etc/httpd2/conf/extra/httpd-vhosts.conf ....
--
Alexey Sidorov
mailto:alex@reutman.ru
JID: alex@reutman.ru
ICQ: 5052225
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Sysadmins] vhosts Б apache2
2007-03-07 8:11 ` Alexey Sidorov
@ 2007-03-16 22:51 ` Michael Shigorin
2007-03-17 10:35 ` Ivan Fedorov
2007-03-17 21:04 ` Aleksey Avdeev
0 siblings, 2 replies; 8+ messages in thread
From: Michael Shigorin @ 2007-03-16 22:51 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
On Wed, Mar 07, 2007 at 11:11:58AM +0300, Alexey Sidorov wrote:
> Забыл прописать NameVirtualHost *:80 в
> /etc/httpd2/conf/extra/httpd-vhosts.conf ....
А что, по умолчанию не было?
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Sysadmins] vhosts Б apache2
2007-03-16 22:51 ` Michael Shigorin
@ 2007-03-17 10:35 ` Ivan Fedorov
2007-03-17 21:04 ` Aleksey Avdeev
1 sibling, 0 replies; 8+ messages in thread
From: Ivan Fedorov @ 2007-03-17 10:35 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
Michael Shigorin пишет:
> On Wed, Mar 07, 2007 at 11:11:58AM +0300, Alexey Sidorov wrote:
>> Забыл прописать NameVirtualHost *:80 в
>> /etc/httpd2/conf/extra/httpd-vhosts.conf ....
>
> А что, по умолчанию не было?
Да оно там закомментарено... я тоже сперва час угробил на это... :(
Но подумал, что так надо и я сам дурак...
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Sysadmins] vhosts Б apache2
2007-03-16 22:51 ` Michael Shigorin
2007-03-17 10:35 ` Ivan Fedorov
@ 2007-03-17 21:04 ` Aleksey Avdeev
2007-03-18 19:38 ` Michael Shigorin
1 sibling, 1 reply; 8+ messages in thread
From: Aleksey Avdeev @ 2007-03-17 21:04 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
[-- Attachment #1: Type: text/plain, Size: 354 bytes --]
Michael Shigorin пишет:
> On Wed, Mar 07, 2007 at 11:11:58AM +0300, Alexey Sidorov wrote:
>
>>Забыл прописать NameVirtualHost *:80 в
>>/etc/httpd2/conf/extra/httpd-vhosts.conf ....
>
>
> А что, по умолчанию не было?
Есть (в /etc/httpd2/conf/extra/httpd-vhosts.conf), но по умолчанию --
закоментировано.
--
С уважением. Алексей.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 548 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Sysadmins] vhosts Б apache2
2007-03-17 21:04 ` Aleksey Avdeev
@ 2007-03-18 19:38 ` Michael Shigorin
2007-03-19 16:41 ` Aleksey Avdeev
0 siblings, 1 reply; 8+ messages in thread
From: Michael Shigorin @ 2007-03-18 19:38 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
[-- Attachment #1: Type: text/plain, Size: 549 bytes --]
On Sun, Mar 18, 2007 at 12:04:18AM +0300, Aleksey Avdeev wrote:
> >>Забыл прописать NameVirtualHost *:80 в
> >>/etc/httpd2/conf/extra/httpd-vhosts.conf ....
> > А что, по умолчанию не было?
> Есть (в /etc/httpd2/conf/extra/httpd-vhosts.conf), но по
> умолчанию -- закоментировано.
Посмотри баги на первом апаче -- мне в своё время, кажется,
именно на это и пеняли (после раскомментирования по умолчанию
никто с проблемами не приходил).
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Sysadmins] vhosts Б apache2
2007-03-18 19:38 ` Michael Shigorin
@ 2007-03-19 16:41 ` Aleksey Avdeev
0 siblings, 0 replies; 8+ messages in thread
From: Aleksey Avdeev @ 2007-03-19 16:41 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
[-- Attachment #1: Type: text/plain, Size: 606 bytes --]
Michael Shigorin пишет:
> On Sun, Mar 18, 2007 at 12:04:18AM +0300, Aleksey Avdeev wrote:
>>>> Забыл прописать NameVirtualHost *:80 в
>>>> /etc/httpd2/conf/extra/httpd-vhosts.conf ....
>>> А что, по умолчанию не было?
>> Есть (в /etc/httpd2/conf/extra/httpd-vhosts.conf), но по
>> умолчанию -- закоментировано.
>
> Посмотри баги на первом апаче -- мне в своё время, кажется,
> именно на это и пеняли (после раскомментирования по умолчанию
> никто с проблемами не приходил).
В новом варианте (с конфигами аля-Debian) vhosts будут работать по
умолчанию.
--
С уважением. Алексей.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 481 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2007-03-19 16:41 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-06 11:03 [Sysadmins] vhosts в apache2 Alexey Sidorov
2007-03-06 15:00 ` [Sysadmins] vhosts Б apache2 Aleksey Avdeev
2007-03-07 8:11 ` Alexey Sidorov
2007-03-16 22:51 ` Michael Shigorin
2007-03-17 10:35 ` Ivan Fedorov
2007-03-17 21:04 ` Aleksey Avdeev
2007-03-18 19:38 ` Michael Shigorin
2007-03-19 16:41 ` Aleksey Avdeev
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