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 12:26:31 +0300 Message-ID: <m3eiksced4.fsf@thinkpad.oxyum.localnet> (raw) In-Reply-To: <20100211120713.70ba9481@lynx.home.remaks.info> [-- Attachment #1: Type: text/plain, Size: 994 bytes --] Maks Re <admaks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes: > В Thu, 11 Feb 2010 11:49:26 +0300 > Alexey Morsov <samurai@ricom.ru> пишет: > >> On Thu, Feb 11, 2010 at 10:31:50AM +0300, Maks Re wrote: >> > >> > я бы хотел это реализовать на обоих версиях. >> Конфиг в студию уже дайте. >> Проверьте для начала такую конфигурацию: # # Use name-based virtual hosting. # NameVirtualHost * # Summary: dev.domain.ru Virtual Hosts <VirtualHost * > ServerName "dev.domain.ru" DocumentRoot "/var/www/vhosts/dev.domain.ru/html" </VirtualHost> <VirtualHost * > ServerName "domain.ru" DocumentRoot "/var/www/vhosts/domain/html" </VirtualHost> Должна работать! >> PS: А в /etc/httpd есть примеры конфигов обычно... > >и чтобы два домен и поддомен имели разные корни? Да. [-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2010-02-11 9:26 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 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 [this message] 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=m3eiksced4.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