ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Alexey Sidorov <alex@reutman.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] vhosts Б apache2
Date: Wed, 07 Mar 2007 11:11:58 +0300
Message-ID: <45EE73CE.90801@reutman.ru> (raw)
In-Reply-To: <45ED8227.4090909@solin.spb.ru>

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


  reply	other threads:[~2007-03-07  8:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

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=45EE73CE.90801@reutman.ru \
    --to=alex@reutman.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