From: Denis Klimov <zver@altlinux.org>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] Настройка vhosts на apache2 (branch 4.1)
Date: Fri, 26 Sep 2008 13:48:41 +0600
Message-ID: <20080926134841.b535fc74.zver@altlinux.org> (raw)
In-Reply-To: <6c7be88d0809260041veed092oc613c90d4b691809@mail.gmail.com>
On Fri, 26 Sep 2008 10:41:18 +0300 Dmitriy Kruglikov wrote:
> 26 сентября 2008 г. 10:30 пользователь SKeeper написал:
>
> > В /etc/httpd2/conf/sites-avialable/vhosts.conf вставляете кусок вида:
>
> А если задачку усложнить ?
>
> Сервер с "белым" адресом ... DNS и все остальное валидно и ресолвится ...
>
> Нужно на одном и том же "белом адресе поднять:
> Больше двух серверов на порту 80 с разными именами
> host1.domain.com
> ...
> hostN.domain.com
> И порту 443, так же, с теми же именами (сертификаты соответствуют именам)
>
> При этом, естественно, что при обращении к серверу по другому имени или
> на порт 443
> попадаем либо в другой каталог, либо вообще Proxy в локалку на другой сервер...
>
<VirtualHost 99.99.99.99>
ServerAdmin your@mail
DocumentRoot "/var/www/vhosts/virt-host-directory"
ServerName www.virt-host-name.com
ErrorLog "/var/log/httpd2/virt-host-name-error_log"
CustomLog /var/log/httpd2/virt-host-name-access_log common
</VirtualHost>
<VirtualHost 99.99.99.99>
ServerAdmin your@mail
DocumentRoot "/var/www/vhosts/virt-host2-directory"
ServerName www.virt-host-name2.com
ErrorLog "/var/log/httpd2/virt-host2-name-error_log"
CustomLog /var/log/httpd2/virt-host2-name-access_log common
</VirtualHost>
--
Denis Klimov
zver
next prev parent reply other threads:[~2008-09-26 7:48 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 [this message]
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
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=20080926134841.b535fc74.zver@altlinux.org \
--to=zver@altlinux.org \
--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