From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Virus-Scanned: amavisd-new at localhost Message-ID: <45EE73CE.90801@reutman.ru> Date: Wed, 07 Mar 2007 11:11:58 +0300 From: Alexey Sidorov User-Agent: Thunderbird 1.5.0.8 (X11/20061205) MIME-Version: 1.0 To: ALT Linux sysadmin discuss References: <45ED4A91.60203@reutman.ru> <45ED8227.4090909@solin.spb.ru> In-Reply-To: <45ED8227.4090909@solin.spb.ru> X-Enigmail-Version: 0.94.1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 8bit Subject: Re: [Sysadmins] =?windows-1251?q?vhosts_=C1_apache2?= X-BeenThere: sysadmins@lists.altlinux.org X-Mailman-Version: 2.1.9rc1 Precedence: list Reply-To: ALT Linux sysadmin discuss List-Id: ALT Linux sysadmin discuss List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Mar 2007 05:12:24 -0000 Archived-At: List-Archive: Aleksey Avdeev пишет: > Alexey Sidorov пишет: >> Здравствуйте. >> Помогите настроить vhosts by name >> >> прописываю: >> /etc/httpd2/httpd2.conf: >> Listen *:80 >> >> Options Indexes FollowSymLinks >> AllowOverride None >> Order allow,deny >> Allow from all >> >> Include conf/vhost.d/A.*.conf >> >> /etc/httpd2/conf/vhost.d/A.1.conf: >> >> DocumentRoot /var/www/vhosts/serv1 >> ServerName serv1 >> >> >> /etc/httpd2/conf/vhost.d/A.2.conf: >> >> DocumentRoot /var/www/vhosts/serv2 >> ServerName serv2 >> >> >> получаю: >> 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