ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Aleksey Avdeev <solo@solin.spb.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] Настройка vhosts на apache2  (branch 4.1)
Date: Fri, 26 Sep 2008 14:23:43 +0400
Message-ID: <48DCB82F.8080103@solin.spb.ru> (raw)
In-Reply-To: <48DCAA95.1090303@yandex.ru>

[-- Attachment #1: Type: text/plain, Size: 3436 bytes --]

Желудков Д.В. пишет:
> Aleksey Avdeev wrote:
>> SKeeper пишет:
>>> Желудков Д.В. пишет:
>>>> Есть ли внятный талмуд или инструкция по настройке хотя бы одного 
>>>> name based виртуального хоста на локалхост? Имеющийся опыт настройки 
>>>> в bsd системах и ArchLinux не могу использовать, так как структура 
>>>> конфигов довольно сильно изменена, а настроить надо в сжатые сроки. 
>>>> Подойдет даже очень сжатая инструкция :)
>>> В /etc/httpd2/conf/sites-avialable/vhosts.conf вставляете кусок вида:
>>>
>>> <VirtualHost virt-host-name:80>
>>                ^^^^^^^^^^^^^^^^^
>>>    ServerAdmin your@mail
>>>    DocumentRoot "/var/www/vhosts/virt-host-directory"
>>>    ServerName 127.0.0.1
>>>    ServerAlias www.virt-host-name
>>>    ErrorLog "/var/log/httpd2/virt-host-name-error_log"
>>>    CustomLog /var/log/httpd2/virt-host-name-access_log common
>>> </VirtualHost>
>>
>>   В данном случаи получился vhost использующий оба механизма (по имени 
>> и ip).
>>
>>   Чтобы vhost был доступен по данному имени с любых ip (и открытых 
>> портов):
>>
>> <VirtualHost *>
>>     ServerName <имя vhost>
>>     ServerAlias <альтернативное имя vhost>
>>     ...
>> </VirtualHost>
>>
>>   Этот кусок лучше оформить независимым 
>> /etc/httpd2/conf/sites-avialable/<имя vhost>.conf (появиться 
>> возможность независимо управлять его активностью, см. 
>> README.ALT.ru_RU.KOI8-R). (В качестве шаблона можно использовать 
>> /etc/httpd2/conf/sites-available/vhost.templ.conf)
>>
>>>
>>> Если у Вас настроен локальный днс, то прописываете в нем связь имени 
>>> вашего виртуального хоста и 127.0.0.1 иначе редактируете файл 
>>> /etc/hosts - добавляете напротив 127.0.0.1 через пробел virt-host-name.
>>>
>>> После этого рестартуйте апач.
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Sysadmins mailing list
>> Sysadmins@lists.altlinux.org
>> https://lists.altlinux.org/mailman/listinfo/sysadmins
>>   
> ./README.ALT.ru_RU.KOI8-R
> ./README.ALT.ru_RU.KOI8-R: line 1: �������: команда не найдена
> ./README.ALT.ru_RU.KOI8-R: line 2: unexpected EOF while looking for 
> matching ``'
> ./README.ALT.ru_RU.KOI8-R: line 70: ошибка синтаксиса: неожиданный конец 
> файла

   А чего вы пытаетесь сделать?! 8-0

   README.ALT.ru_RU.KOI8-R -- Файл с документацией в _текстовом_ формате 
(текст в кодировке KOI8-R). Кому вы пытаетесь его скормить?!

> 
> Тоже проблема

-- 

С уважением. Алексей.



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 552 bytes --]

  parent reply	other threads:[~2008-09-26 10:23 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-26  6:31 "Желудков Д.В."
2008-09-26  7:30 ` SKeeper
2008-09-26  7:41   ` Dmitriy Kruglikov
2008-09-26  7:48     ` Denis Klimov
2008-09-26  8:50   ` "Желудков Д.В."
2008-09-26  9:45     ` SKeeper
2008-09-26  9:49       ` "Желудков Д.В."
2008-09-26 10:19         ` Aleksey Avdeev
2008-09-26 11:32         ` SKeeper
2008-09-26  8:53   ` Aleksey Avdeev
2008-09-26  9:55       ` Timur Batyrshin
2008-09-26 10:23       ` Aleksey Avdeev [this message]
2008-09-26 10:51         ` "Желудков Д.В."
2008-09-26 11:12           ` Aleksey Avdeev
2008-09-26 11:36     ` SKeeper
2008-09-26 11:44       ` Boris Savelev
2008-09-26 11:54       ` Aleksey Avdeev
2008-09-26 13:31         ` "Желудков Д.В."
2008-09-26 14:08           ` Aleksey Avdeev
2008-09-26 14:38             ` "Желудков Д.В."
2008-09-26 14:50               ` Aleksey Avdeev
2008-09-26 16:35                   ` 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=48DCB82F.8080103@solin.spb.ru \
    --to=solo@solin.spb.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