ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Ivan Fedorov <ns@altlinux.org>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] apache - два vhost: domain.ru & sub.domain.ru
Date: Thu, 11 Feb 2010 02:01:21 +0300
Message-ID: <m3k4ukd7b2.fsf@thinkpad.oxyum.localnet> (raw)
In-Reply-To: <20100211010940.46f90cd0@lynx.home.remaks.info>

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

Maks Re <admaks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> Привет
>
> как реализуется следующее:
>
> один сервер, один ИП.
> хочется не трогать DocumentRoot для domain.ru
>
> и хочется сделать другой DocumentRoot для sub.domain.ru
>
> такое возможно?
>
> сейчас все игры свелись к тому, что sub.domain.ru попадает все равно в
> DocumentRoot для domain.ru
>
> или как это делается по другому?

Я полагаю что у вас apache. Копайте в сторону:

    google://name+based+vhosts

PS: А в /etc/httpd есть примеры конфигов обычно...

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2010-02-10 23:01 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-10 22:09 Maks Re
2010-02-10 23:01 ` Ivan Fedorov [this message]
2010-02-11  7:31   ` Maks Re
2010-02-11  4:09 ` Aleksey Avdeev
2010-02-11  7:31   ` Maks Re
2010-02-11  8:49     ` Alexey Morsov
2010-02-11  9:07       ` Maks Re
2010-02-11  9:26         ` Ivan Fedorov
2010-02-11  9:08       ` Maks Re
2010-02-11  7:29   ` Maks Re

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=m3k4ukd7b2.fsf@thinkpad.oxyum.localnet \
    --to=ns@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