* [mdk-re] Apache 1.3.20 - troubles with virtual hosts and more... @ 2001-09-12 18:05 Artem K. Jouravsky 2001-09-12 18:26 ` Maxim 0 siblings, 1 reply; 14+ messages in thread From: Artem K. Jouravsky @ 2001-09-12 18:05 UTC (permalink / raw) To: Spring 2001 Доброго времени суток! Когда-то возникали подобные вопросы, но тогда все решилось сборкой Апача самостоятельно из тарболла в связи со срочностью, которая и теперь имеет место :( 1. почему-то не отображаются пользовательские директории вида http://localhost/~user Или отображаются но не всегда. Модуль mod_userdir подгружен 2. проблема с виртуальными хостами. То есть, они просто не существуют, работает только один из них... ------ Best wishes, +----------------------+--------------------------+ | ."-. | Work: +7-(095)-229-4278 | | /X | _o.----. _ | ICQ: 103399444 | |/\_ \/ / __ \_// ) | Artem K. Jouravsky | |\__)-/_/\_____)____/ | http://www.ifirst.ru/ | +----------------------+--------------------------+ ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [mdk-re] Apache 1.3.20 - troubles with virtual hosts and more... 2001-09-12 18:05 [mdk-re] Apache 1.3.20 - troubles with virtual hosts and more Artem K. Jouravsky @ 2001-09-12 18:26 ` Maxim 2001-09-14 9:54 ` Artem K. Jouravsky 0 siblings, 1 reply; 14+ messages in thread From: Maxim @ 2001-09-12 18:26 UTC (permalink / raw) To: Artem K. Jouravsky Приветствую, Artem K. Jouravsky, Wednesday, September 12, 2001, 6:13:40 PM, you wrote: AKJ> Доброго времени суток! Когда-то возникали подобные вопросы, но AKJ> тогда все решилось сборкой Апача самостоятельно из тарболла в AKJ> связи со срочностью, которая и теперь имеет место :( AKJ> 1. почему-то не отображаются пользовательские директории вида AKJ> http://localhost/~user AKJ> Или отображаются но не всегда. Модуль mod_userdir подгружен AKJ> 2. проблема с виртуальными хостами. То есть, они просто не AKJ> существуют, работает только один из них... Я убрал squid и все стало нормально. Не знаю причин, мне в общем никто их объяснить не смог. Но у вас не виртуальные хосты, а пользовательские директории. Там в конф файле есть комментарий который надо убрать для этой функции. Может поможет. :) -- Maxim mailto:max_conf@banana.ptt.ru ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [mdk-re] Apache 1.3.20 - troubles with virtual hosts and more... 2001-09-12 18:26 ` Maxim @ 2001-09-14 9:54 ` Artem K. Jouravsky 2001-09-14 12:29 ` Artem K. Jouravsky 2001-09-14 19:52 ` John Profic 0 siblings, 2 replies; 14+ messages in thread From: Artem K. Jouravsky @ 2001-09-14 9:54 UTC (permalink / raw) To: mandrake-russian Здравствуйте, Maxim <max_conf@banana.ptt.ru>! От Wed, 12 Sep 2001 18:32:52 +0400 вы писали на тему Re: [mdk-re] Apache 1.3.20 - troubles with virtual hosts and more...: > Приветствую, Artem K. Jouravsky, > Wednesday, September 12, 2001, 6:13:40 PM, you wrote: > > AKJ> Доброго времени суток! Когда-то возникали подобные > вопросы, но > AKJ> тогда все решилось сборкой Апача самостоятельно из > тарболла в > AKJ> связи со срочностью, которая и теперь имеет место :( > > AKJ> 1. почему-то не отображаются пользовательские директории > вида > AKJ> http://localhost/~user > AKJ> Или отображаются но не всегда. Модуль mod_userdir > подгружен > AKJ> 2. проблема с виртуальными хостами. То есть, они просто не > AKJ> существуют, работает только один из них... > > Я убрал squid и все стало нормально. > Не знаю причин, мне в общем никто их объяснить не смог. > Но у вас не виртуальные хосты, а пользовательские директории. > Там в конф файле > есть комментарий который надо убрать для этой функции. Может > поможет. :) Увы мне, есть обе проблемы, просто я позавчера не дописал письмо толком. Пользовательских директорий нет. # For DynamicVhosts and VirtualHomePages, uncomment this: #LoadModule vhost_alias_module modules/mod_vhost_alias.so Это я пробовал, но оно кажется не для этого, раньше и без этого модуля работало... Вероятно, дело может быть в том, что у меня папки пользователей лежат не в /home а в /home/group/, в зависимости о группы каждого пользователя. На этот случай я добавил записи: # # Control access to UserDir directories. The following is an example # for a site where these directories are restricted to read-only. # <Directory /home/program1/*/public_html> AllowOverride FileInfo AuthConfig Limit Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec <Limit GET POST OPTIONS PROPFIND> Order allow,deny Allow from all </Limit> <LimitExcept GET POST OPTIONS PROPFIND> Order deny,allow Deny from all </LimitExcept> </Directory> Для каждой группы. Один раз почему-то сработало, но после первой же перегрузки Апача - пропало. mod_userdir подгружен. Сделал симлинк пользовательской директории на /home - не помогает. public_html в папках присутствует. ЧТО ЕМУ НЕ ТАК?? С хостами же такая беда: имеем файл, который инклюдится в общий конфиг /etc/httpd/conf/vhosts/Vhosts.conf. Прописываем в него два виртуальных хоста: <VirtualHost artgalactic-com.ifirst.ru> ServerAdmin zamkov@ifirst.ru DocumentRoot /home/samba/testing/artgalactic-com ServerName artgalactic-com.ifirst.ru ErrorLog logs/artgalactic-com.ifirst.ru-error.log TransferLog logs/artgalactic-com.ifirst.ru-access.log ScriptAlias /cgi-bin/ /home/test/public_html/cgi CharsetRecodeMultipartForms Off </VirtualHost> <VirtualHost king.ifirst.ru> ServerAdmin ujo@zuzusoft.com DocumentRoot /home/httpd/html ServerName king.ifirst.ru ErrorLog logs/king.ifirst.ru-error.log TransferLog logs/king.ifirst.ru-access.log ScriptAlias /cgi-bin/ /home/httpd/cgi-bin CharsetRecodeMultipartForms Off </VirtualHost> Грузится только первый, по какому адресу ни обратись. Причем, повторяю, я с этим уже сталкивался раньше, тогда все закончилось самостоятельной сборкой Апача... Ну где еще может быть кривизна?? ------ Best wishes, +----------------------+--------------------------+ | ."-. | Work: +7-(095)-229-4278 | | /X | _o.----. _ | ICQ: 103399444 | |/\_ \/ / __ \_// ) | Artem K. Jouravsky | |\__)-/_/\_____)____/ | http://www.ifirst.ru/ | +----------------------+--------------------------+ ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [mdk-re] Apache 1.3.20 - troubles with virtual hosts and more... 2001-09-14 9:54 ` Artem K. Jouravsky @ 2001-09-14 12:29 ` Artem K. Jouravsky 2001-09-14 18:59 ` AT 2001-09-14 19:52 ` John Profic 1 sibling, 1 reply; 14+ messages in thread From: Artem K. Jouravsky @ 2001-09-14 12:29 UTC (permalink / raw) To: mandrake-russian Здравствуйте, "Artem K. Jouravsky" <ujo@zuzusoft.com>! От Fri, 14 Sep 2001 10:02:45 +0400 вы писали на тему Re: [mdk-re] Apache 1.3.20 - troubles with virtual hosts and more...: AJ> Здравствуйте, Maxim <max_conf@banana.ptt.ru>! AJ> От Wed, 12 Sep 2001 18:32:52 +0400 вы писали на тему Re: AJ> [mdk-re] AJ> Apache 1.3.20 - troubles with virtual hosts and more...: AJ> AJ> > Приветствую, Artem K. Jouravsky, AJ> > Wednesday, September 12, 2001, 6:13:40 PM, you wrote: AJ> > AJ> > AKJ> Доброго времени суток! Когда-то возникали подобные AJ> > вопросы, но AJ> > AKJ> тогда все решилось сборкой Апача самостоятельно из AJ> > тарболла в AJ> > AKJ> связи со срочностью, которая и теперь имеет место :( AJ> > AJ> > AKJ> 1. почему-то не отображаются пользовательские AJ> директории Вылечилось таким же волшебным образом... После скачивания src.rpm и пересборки (rpm --rebuild). Конфиги оставил те же самые. AJ> С хостами же такая беда: имеем AJ> файл, который инклюдится в общий конфиг AJ> /etc/httpd/conf/vhosts/Vhosts.conf. Прописываем в него два AJ> виртуальных хоста: AJ> AJ> <VirtualHost artgalactic-com.ifirst.ru> AJ> ServerAdmin zamkov@ifirst.ru AJ> DocumentRoot /home/samba/testing/artgalactic-com AJ> ServerName artgalactic-com.ifirst.ru AJ> ErrorLog logs/artgalactic-com.ifirst.ru-error.log AJ> TransferLog logs/artgalactic-com.ifirst.ru-access.log AJ> ScriptAlias /cgi-bin/ /home/test/public_html/cgi AJ> CharsetRecodeMultipartForms Off AJ> </VirtualHost> AJ> AJ> <VirtualHost king.ifirst.ru> AJ> ServerAdmin ujo@zuzusoft.com AJ> DocumentRoot /home/httpd/html AJ> ServerName king.ifirst.ru AJ> ErrorLog logs/king.ifirst.ru-error.log AJ> TransferLog logs/king.ifirst.ru-access.log AJ> ScriptAlias /cgi-bin/ /home/httpd/cgi-bin AJ> CharsetRecodeMultipartForms Off AJ> </VirtualHost> AJ> Грузится только первый, по какому адресу ни обратись. Причем, AJ> повторяю, я с этим уже сталкивался раньше, тогда все AJ> закончилось AJ> самостоятельной сборкой Апача... Ну где еще может быть AJ> кривизна?? А здесь все по прежнему :( ------ Best wishes, +----------------------+--------------------------+ | ."-. | Work: +7-(095)-229-4278 | | /X | _o.----. _ | ICQ: 103399444 | |/\_ \/ / __ \_// ) | Artem K. Jouravsky | |\__)-/_/\_____)____/ | http://www.ifirst.ru/ | +----------------------+--------------------------+ ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [mdk-re] Apache 1.3.20 - troubles with virtual hosts and more... 2001-09-14 12:29 ` Artem K. Jouravsky @ 2001-09-14 18:59 ` AT 2001-09-14 19:35 ` Artem K. Jouravsky 0 siblings, 1 reply; 14+ messages in thread From: AT @ 2001-09-14 18:59 UTC (permalink / raw) To: mandrake-russian Hi! > Вылечилось таким же волшебным образом... После скачивания src.rpm > и пересборки (rpm --rebuild). Конфиги оставил те же самые. Плохо, когда проблемы разрешаются вот так вот "волшебно". Нужно ведь разобраться в причине, а не просто что-то тупо перекомпилять. Иначе это будет похоже на переустановку Windows... > AJ> Грузится только первый, по какому адресу ни обратись. Причем, > AJ> повторяю, я с этим уже сталкивался раньше, тогда все > AJ> закончилось > AJ> самостоятельной сборкой Апача... Ну где еще может быть > AJ> кривизна?? В Апаче очень вылизанный код, не стоит надеяться на его кривизну. В документации (manual/vhost/details.html) написано: Unless a NameVirtualHost directive is used for a specific IP address the first vhost with that address is treated as an IP-based vhost. In 1.3.13 and later that includes the IP address *. Попробуйте сделать следующее: NameVirtualHost 111.222.333.444 <VirtualHost 111.222.333.444> ServerName vhost1.mydomain.ru ... </VirtualHost> <VirtualHost 111.222.333.444> ServerName vhost2.mydomain.ru ... </VirtualHost> Может быть отдельная проблема, если вы используете Russian Apache с перекодировкой по портам 8080 и т.д. (нужно использовать * в качестве порта, т.е. <VirtualHost 111.222.333.444:*>. __ AT ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [mdk-re] Apache 1.3.20 - troubles with virtual hosts and more... 2001-09-14 18:59 ` AT @ 2001-09-14 19:35 ` Artem K. Jouravsky 2001-09-18 5:57 ` AT 0 siblings, 1 reply; 14+ messages in thread From: Artem K. Jouravsky @ 2001-09-14 19:35 UTC (permalink / raw) To: mandrake-russian Здравствуйте, AT <alexey_tourbin@mail.ru>! От Fri, 14 Sep 2001 18:58:34 +0400 вы писали на тему Re: [mdk-re] Apache 1.3.20 - troubles with virtual hosts and more...: > Hi! > > > Вылечилось таким же волшебным образом... После скачивания > src.rpm > > и пересборки (rpm --rebuild). Конфиги оставил те же самые. > > Плохо, когда проблемы разрешаются вот так вот "волшебно". Нужно > ведь > разобраться в причине, а не просто что-то тупо перекомпилять. > Иначе это > будет похоже на переустановку Windows... Согласен, а что делать? Работать надо... Хотя проблема иногда всплывает. Пример. Создаю хост, на который ни один ДНС не указывает, а указывает только запись в /etc/hosts (он нужен для обращения некоторых скриптов с той же машины. Проверяю - links <internal_host>. Все замечательно, вижу его. Для дополнительной проверки (ну неудобно links'ом, графики нет и все такое) прописываю тот же хост на своей машине... И вижу другой виртуальный хост, тот, который у меня первым в очереди прописан. Подземный стук, фазы Луны? > > > AJ> Грузится только первый, по какому адресу ни обратись. > Причем, > > AJ> повторяю, я с этим уже сталкивался раньше, тогда все > > AJ> закончилось > > AJ> самостоятельной сборкой Апача... Ну где еще может быть > > AJ> кривизна?? > > В Апаче очень вылизанный код, не стоит надеяться на его > кривизну. Да я не про код, я про свои руки... > > В документации (manual/vhost/details.html) написано: > > Unless a NameVirtualHost directive is used for a specific IP > address > the first vhost with that address is treated as an IP-based > vhost. > In 1.3.13 and later that includes the IP address *. > По IP адресам... Не хотелось... Кстати, вылечилось прописанием директив NameVirtualHost <имя>. Опять же, после пересборки. То есть, по сути дела конфиги те же, spec тот же а результат разный. Теперь еще и apt ругается. > Попробуйте сделать следующее: > > NameVirtualHost 111.222.333.444 > > <VirtualHost 111.222.333.444> > ServerName vhost1.mydomain.ru > ... > </VirtualHost> > > <VirtualHost 111.222.333.444> > ServerName vhost2.mydomain.ru > ... > </VirtualHost> > > Может быть отдельная проблема, если вы используете Russian > Apache с > перекодировкой по портам 8080 и т.д. (нужно использовать * в Не использую :( > качестве > порта, т.е. <VirtualHost 111.222.333.444:*>. ------ Best wishes, +----------------------+--------------------------+ | ."-. | Work: +7-(095)-229-4278 | | /X | _o.----. _ | ICQ: 103399444 | |/\_ \/ / __ \_// ) | Artem K. Jouravsky | |\__)-/_/\_____)____/ | http://www.ifirst.ru/ | +----------------------+--------------------------+ ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [mdk-re] Apache 1.3.20 - troubles with virtual hosts and more... 2001-09-14 19:35 ` Artem K. Jouravsky @ 2001-09-18 5:57 ` AT 2001-09-18 11:52 ` Artem K. Jouravsky 2001-09-18 17:13 ` Albert R.Valiev 0 siblings, 2 replies; 14+ messages in thread From: AT @ 2001-09-18 5:57 UTC (permalink / raw) To: mandrake-russian > > В документации (manual/vhost/details.html) написано: > > > > Unless a NameVirtualHost directive is used for a specific IP > > address > > the first vhost with that address is treated as an IP-based > > vhost. > > In 1.3.13 and later that includes the IP address *. > > > По IP адресам... Не хотелось... Кстати, вылечилось прописанием Нет, вы меня неправильно поняли. Именно на одном IP-адресе, который указан во всех виртуальных хостах в качестве VirtualHost. И имени хоста в ServerName. > директив NameVirtualHost <имя>. Опять же, после пересборки. То В приведённой цитате как раз и сказано, что если нет директивы NameVirtualHost, то первый попавшийся VirtualHost будет отвечать на любые запросы по соответствующему IP-адресу. В Апаче, по правде говоря, несколько запутанная концепция виртуальных хостов -- слишком много неочевидных правил по умолчанию и т.п. Всё, что нужно понять, что на самом деле нет никаких "виртуальных серверов", есть только один TCP сокет который слушает соединения на 80 порту. И есть поле Host в заголовке HTTP запроса, по которому апач определяет, на какой vhost этот запрос перебрасывать. Но из-за того, что апач умеет bind'иться на несколько адресов и слушать по нескольким портам (для каждой пары IP+Port создается отдельный сокет), алгоритм усложняется: Если для данного сокета (IP+Port) есть директива NameVirtualHost, то проходим *по всем* виртуальным хостам и смотрим: 1) Удовлетворяют ли данный хост требованию IP+Port. Здесь может быть сделан лишний DNS resolve, если в хосте явно не указан IP-адрес (см. документацию). 2) Соответствует ли имя хоста HTTP заголовку Host. Если же для сокета не находится NameVirtualHost, то Апач ограничивается только первым этапом. Что и происходило в Вашем случае. Или вроде того. > есть, по сути дела конфиги те же, spec тот же а результат > разный. Теперь еще и apt ругается. Апач по древней и священной традиции следует собирать из тарболла. ;) __ AT ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [mdk-re] Apache 1.3.20 - troubles with virtual hosts and more... 2001-09-18 5:57 ` AT @ 2001-09-18 11:52 ` Artem K. Jouravsky 2001-09-18 13:39 ` Artem K. Jouravsky ` (2 more replies) 2001-09-18 17:13 ` Albert R.Valiev 1 sibling, 3 replies; 14+ messages in thread From: Artem K. Jouravsky @ 2001-09-18 11:52 UTC (permalink / raw) To: mandrake-russian Здравствуйте, AT <alexey_tourbin@mail.ru>! От Fri, 14 Sep 2001 22:20:40 +0400 вы писали на тему Re: [mdk-re] Apache 1.3.20 - troubles with virtual hosts and more...: > Апач по древней и священной традиции следует собирать из > тарболла. ;) Возможно, я все равно приду к этому, но пока удавалось обходиться пакетами :) Ну, за исключениями.... Но даже в случае исключений старался действовать по правилам изложенным в спеке :) Однако хочется постепенно прийти к полному пониманию процесса - и умению собирать свои пакеты. Поэтому сейчас тарболлы в систему стараюсь ставить только если время совсем поджимает. Или что-то сложносоставное - tomcat например... P.S. Большое спасибо за разъяснения, очень помогло! ------ Best wishes, +----------------------+--------------------------+ | ."-. | Work: +7-(095)-229-4278 | | /X | _o.----. _ | ICQ: 103399444 | |/\_ \/ / __ \_// ) | Artem K. Jouravsky | |\__)-/_/\_____)____/ | http://www.ifirst.ru/ | +----------------------+--------------------------+ ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [mdk-re] Apache 1.3.20 - troubles with virtual hosts and more... 2001-09-18 11:52 ` Artem K. Jouravsky @ 2001-09-18 13:39 ` Artem K. Jouravsky 2001-09-18 14:03 ` Artem K. Jouravsky 2001-09-18 15:05 ` Artem K. Jouravsky 2 siblings, 0 replies; 14+ messages in thread From: Artem K. Jouravsky @ 2001-09-18 13:39 UTC (permalink / raw) To: mandrake-russian Здравствуйте, AT <alexey_tourbin@mail.ru>! От Fri, 14 Sep 2001 22:20:40 +0400 вы писали на тему Re: [mdk-re] Apache 1.3.20 - troubles with virtual hosts and more...: > Апач по древней и священной традиции следует собирать из > тарболла. ;) Возможно, я все равно приду к этому, но пока удавалось обходиться пакетами :) Ну, за исключениями.... Но даже в случае исключений старался действовать по правилам изложенным в спеке :) Однако хочется постепенно прийти к полному пониманию процесса - и умению собирать свои пакеты. Поэтому сейчас тарболлы в систему стараюсь ставить только если время совсем поджимает. Или что-то сложносоставное - tomcat например... P.S. Большое спасибо за разъяснения, очень помогло! ------ Best wishes, +----------------------+--------------------------+ | ."-. | Work: +7-(095)-229-4278 | | /X | _o.----. _ | ICQ: 103399444 | |/\_ \/ / __ \_// ) | Artem K. Jouravsky | |\__)-/_/\_____)____/ | http://www.ifirst.ru/ | +----------------------+--------------------------+ _______________________________________________ Mandrake-russian mailing list Mandrake-russian@altlinux.ru http://altlinux.ru/mailman/listinfo/mandrake-russian ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [mdk-re] Apache 1.3.20 - troubles with virtual hosts and more... 2001-09-18 11:52 ` Artem K. Jouravsky 2001-09-18 13:39 ` Artem K. Jouravsky @ 2001-09-18 14:03 ` Artem K. Jouravsky 2001-09-18 15:05 ` Artem K. Jouravsky 2 siblings, 0 replies; 14+ messages in thread From: Artem K. Jouravsky @ 2001-09-18 14:03 UTC (permalink / raw) To: mandrake-russian Здравствуйте, AT <alexey_tourbin@mail.ru>! От Fri, 14 Sep 2001 22:20:40 +0400 вы писали на тему Re: [mdk-re] Apache 1.3.20 - troubles with virtual hosts and more...: > Апач по древней и священной традиции следует собирать из > тарболла. ;) Возможно, я все равно приду к этому, но пока удавалось обходиться пакетами :) Ну, за исключениями.... Но даже в случае исключений старался действовать по правилам изложенным в спеке :) Однако хочется постепенно прийти к полному пониманию процесса - и умению собирать свои пакеты. Поэтому сейчас тарболлы в систему стараюсь ставить только если время совсем поджимает. Или что-то сложносоставное - tomcat например... P.S. Большое спасибо за разъяснения, очень помогло! ------ Best wishes, +----------------------+--------------------------+ | ."-. | Work: +7-(095)-229-4278 | | /X | _o.----. _ | ICQ: 103399444 | |/\_ \/ / __ \_// ) | Artem K. Jouravsky | |\__)-/_/\_____)____/ | http://www.ifirst.ru/ | +----------------------+--------------------------+ _______________________________________________ Mandrake-russian mailing list Mandrake-russian@altlinux.ru http://altlinux.ru/mailman/listinfo/mandrake-russian _______________________________________________ Mandrake-russian mailing list Mandrake-russian@altlinux.ru http://altlinux.ru/mailman/listinfo/mandrake-russian ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [mdk-re] Apache 1.3.20 - troubles with virtual hosts and more... 2001-09-18 11:52 ` Artem K. Jouravsky 2001-09-18 13:39 ` Artem K. Jouravsky 2001-09-18 14:03 ` Artem K. Jouravsky @ 2001-09-18 15:05 ` Artem K. Jouravsky 2 siblings, 0 replies; 14+ messages in thread From: Artem K. Jouravsky @ 2001-09-18 15:05 UTC (permalink / raw) To: mandrake-russian Здравствуйте, AT <alexey_tourbin@mail.ru>! От Fri, 14 Sep 2001 22:20:40 +0400 вы писали на тему Re: [mdk-re] Apache 1.3.20 - troubles with virtual hosts and more...: > Апач по древней и священной традиции следует собирать из > тарболла. ;) Возможно, я все равно приду к этому, но пока удавалось обходиться пакетами :) Ну, за исключениями.... Но даже в случае исключений старался действовать по правилам изложенным в спеке :) Однако хочется постепенно прийти к полному пониманию процесса - и умению собирать свои пакеты. Поэтому сейчас тарболлы в систему стараюсь ставить только если время совсем поджимает. Или что-то сложносоставное - tomcat например... P.S. Большое спасибо за разъяснения, очень помогло! ------ Best wishes, +----------------------+--------------------------+ | ."-. | Work: +7-(095)-229-4278 | | /X | _o.----. _ | ICQ: 103399444 | |/\_ \/ / __ \_// ) | Artem K. Jouravsky | |\__)-/_/\_____)____/ | http://www.ifirst.ru/ | +----------------------+--------------------------+ _______________________________________________ Mandrake-russian mailing list Mandrake-russian@altlinux.ru http://altlinux.ru/mailman/listinfo/mandrake-russian _______________________________________________ Mandrake-russian mailing list Mandrake-russian@altlinux.ru http://altlinux.ru/mailman/listinfo/mandrake-russian _______________________________________________ Mandrake-russian mailing list Mandrake-russian@altlinux.ru http://altlinux.ru/mailman/listinfo/mandrake-russian ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [mdk-re] Apache 1.3.20 - troubles with virtual hosts and more... 2001-09-18 5:57 ` AT 2001-09-18 11:52 ` Artem K. Jouravsky @ 2001-09-18 17:13 ` Albert R.Valiev 1 sibling, 0 replies; 14+ messages in thread From: Albert R.Valiev @ 2001-09-18 17:13 UTC (permalink / raw) To: mandrake-russian 14 Сентябрь 2001 22:20, Вы написали: Может быть тебе подойдет мой конфиг: Вот это у меня делает виртуальные хосты: -------------------------------DynamicVhost.conf-------------------------- UseCanonicalName Off LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon CustomLog /var/log/httpd/vaccess_log vcommon VirtualDocumentRoot /www/hosts/%0/docs VirtualScriptAlias /www/hosts/%0/cgi-bin -------------------------------DynamicVhost.conf-------------------------- В результате в каталоге /www/hosts/$fqdn/docs размещаются страницы хоста, а также у каждого хоста отдельный каталог cgi-bin. для примера (может я неправильно выразился) у меня есть хост www.test.ru, в результате в каталоге /www/hosts есть каталог www.test.ru, в нем подкаталоги docs & cgi-bin. Ну и так далее в том же духе. Кстати, вместо %0 можно поставить %1 (будет выглядеть так: каталог.hostname(если hostname = test.ru, то будет выглядеть $dir.test.ru), или же %2, это для вставки между hostname & domainname) (if hostname = www.test.ru then vhost = www.$dir.test.ru). Надеюсь я понятно выразился :)))) -- Xmms np: Duran Duran - Come Undone ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [mdk-re] Apache 1.3.20 - troubles with virtual hosts and more... 2001-09-14 9:54 ` Artem K. Jouravsky 2001-09-14 12:29 ` Artem K. Jouravsky @ 2001-09-14 19:52 ` John Profic 2001-09-14 19:56 ` Artem K. Jouravsky 1 sibling, 1 reply; 14+ messages in thread From: John Profic @ 2001-09-14 19:52 UTC (permalink / raw) To: mandrake-russian Artem K. Jouravsky wrote: > Здравствуйте, Maxim <max_conf@banana.ptt.ru>! > От Wed, 12 Sep 2001 18:32:52 +0400 вы писали на тему Re: [mdk-re] > Apache 1.3.20 - troubles with virtual hosts and more...: <snip> > С хостами же такая беда: имеем > файл, который инклюдится в общий конфиг > /etc/httpd/conf/vhosts/Vhosts.conf. Прописываем в него два > виртуальных хоста: Добавить NameVirtualHost *IP-адрес*, например NameVirtualHost 192.168.1.1 > <VirtualHost artgalactic-com.ifirst.ru> и тут тоже должен быть IP-адрес, т.е. в соответствии с примером выше: <VirtualHost 192.168.1.1> > ServerAdmin zamkov@ifirst.ru > DocumentRoot /home/samba/testing/artgalactic-com > ServerName artgalactic-com.ifirst.ru > ErrorLog logs/artgalactic-com.ifirst.ru-error.log > TransferLog logs/artgalactic-com.ifirst.ru-access.log > ScriptAlias /cgi-bin/ /home/test/public_html/cgi > CharsetRecodeMultipartForms Off > </VirtualHost> > > <VirtualHost king.ifirst.ru> > ServerAdmin ujo@zuzusoft.com > DocumentRoot /home/httpd/html > ServerName king.ifirst.ru > ErrorLog logs/king.ifirst.ru-error.log > TransferLog logs/king.ifirst.ru-access.log > ScriptAlias /cgi-bin/ /home/httpd/cgi-bin > CharsetRecodeMultipartForms Off > </VirtualHost> > Грузится только первый, по какому адресу ни обратись. Причем, > повторяю, я с этим уже сталкивался раньше, тогда все закончилось > самостоятельной сборкой Апача... Ну где еще может быть кривизна?? Читайте, наконец, документацию :) Там это так разжевано, что я сделал это первым делом и без особых напрягов, когда давным-давно поставил себе линукс... И позволю себе еще раз обратить внимани на то, в директивах NameVirtualHost и <VirtualHost ...> должны быть указаны только IP адреса, имена не подойдут. Это раз :) -- Best regards, John Profic <profic@lrn.ru> Written by Mozilla 0.9.3 using ASPLinux release 1.1 with ru_RU.CP1251, system: XFree86 4.1.0; kernel 2.4.8-xfs-p2; gcc 3.0.1 ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [mdk-re] Apache 1.3.20 - troubles with virtual hosts and more... 2001-09-14 19:52 ` John Profic @ 2001-09-14 19:56 ` Artem K. Jouravsky 0 siblings, 0 replies; 14+ messages in thread From: Artem K. Jouravsky @ 2001-09-14 19:56 UTC (permalink / raw) To: mandrake-russian Здравствуйте, John Profic <profic@lrn.ru>! От Fri, 14 Sep 2001 19:24:41 +0400 вы писали на тему Re: [mdk-re] Apache 1.3.20 - troubles with virtual hosts and more...: JP> Читайте, наконец, документацию :) Там это так разжевано, что JP> я сделал JP> это первым делом и без особых напрягов, когда давным-давно JP> поставил себе JP> линукс... JP> И позволю себе еще раз обратить внимани на то, в директивах JP> NameVirtualHost и <VirtualHost ...> должны быть указаны JP> только IP JP> адреса, имена не подойдут. Это раз :) Oops... да, действительно, спасибо! ------ Best wishes, +----------------------+--------------------------+ | ."-. | Work: +7-(095)-229-4278 | | /X | _o.----. _ | ICQ: 103399444 | |/\_ \/ / __ \_// ) | Artem K. Jouravsky | |\__)-/_/\_____)____/ | http://www.ifirst.ru/ | +----------------------+--------------------------+ ^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2001-09-18 17:13 UTC | newest] Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2001-09-12 18:05 [mdk-re] Apache 1.3.20 - troubles with virtual hosts and more Artem K. Jouravsky 2001-09-12 18:26 ` Maxim 2001-09-14 9:54 ` Artem K. Jouravsky 2001-09-14 12:29 ` Artem K. Jouravsky 2001-09-14 18:59 ` AT 2001-09-14 19:35 ` Artem K. Jouravsky 2001-09-18 5:57 ` AT 2001-09-18 11:52 ` Artem K. Jouravsky 2001-09-18 13:39 ` Artem K. Jouravsky 2001-09-18 14:03 ` Artem K. Jouravsky 2001-09-18 15:05 ` Artem K. Jouravsky 2001-09-18 17:13 ` Albert R.Valiev 2001-09-14 19:52 ` John Profic 2001-09-14 19:56 ` Artem K. Jouravsky
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