From: Дима <dik-04@mail.ru> To: ALT Linux Community general discussions <community@lists.altlinux.org> Subject: [Comm] Apache2+vhosts на одном IP через hosts Date: Mon, 03 Aug 2009 13:16:15 +0400 Message-ID: <E1MXteR-0005Xb-00.dik-04-mail-ru@f41.mail.ru> (raw) In-Reply-To: <200907301026.00258.a_s_y@sama.ru> Добрый день(вечер), Подскажите, плиз Не могу настроить Apache на 1 IP адрес в hosts пишу 127.0.0.1 localhost 127.0.0.1 vvv.ru 127.0.0.1 rrrr.ru и в vhost.conf (или в отдельные файлы)следующее Listen 127.0.0.1:80 NameVirtualHost 127.0.0.1:80 <VirtualHost *:*> ServerName localhost DocumentRoot /var/www/html ErrorLog ...... </VirtualHost> <VirtualHost *:*> ServerName vvv.ru DocumentRoot /home/user/www/vvv.ru/html ErrorLog ...... </VirtualHost> <VirtualHost *:*> ServerName rrrr.ru DocumentRoot /var/www/vhosts/rrrr.ru ErrorLog ...... </VirtualHost> Глянул как настроен Денвер 2 там он обращается так как я написал но вот уже Денвер 3 работает с заменой портов и IP Apache 2 и там и там Но вот у меня он почему то кидает всегда на первый хост. Или коробке апач такой? Когда указываешь другой IP Допустем в хостс 127.0.1.1 vvv.ru и в вхостс <VirtualHost 127.0.1.1> ServerName vvv.ru DocumentRoot /home/user/www/vvv.ru/html ErrorLog ...... </VirtualHost> и соответственно меняешь Listen 80 NameVirtualHost * то он все норм отправляет куда нужно, но только каждому хосту нужен свой IP Подскажите, как настроить
prev parent reply other threads:[~2009-08-03 9:16 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-07-29 6:02 [Comm] Сервер с нуля Matyash Y.S. 2009-07-29 10:50 ` Dmitriy Kruglikov 2009-07-29 10:52 ` Slava Dubrovskiy 2009-07-29 13:52 ` Michael Shigorin 2009-07-30 5:25 ` Sergey 2009-08-03 9:16 ` Дима [this message]
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=E1MXteR-0005Xb-00.dik-04-mail-ru@f41.mail.ru \ --to=dik-04@mail.ru \ --cc=community@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 Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git