Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: Apache problem s vhosts


  • Subject: Re: lug-bg: Apache problem s vhosts
  • From: ivo@xxxxxxxx (Ivaylo Toshev)
  • Date: Tue, 30 Jan 2001 07:05:31 GMT



Bez da pretendiram za izcherpatelnost, az tezi neshta sum gi napravil 
taka:
Purvo: Predpolagam che vsichki tezi www.XXXXXX otgovariat na edno IP, 
kudeto suotvetno slusha Apacha.
Sledovatelno triabva da configurirash taka narechenite IP BASED VIRTUAL 
HOST !
Togava se pravi taka:

NameVirtualHost <IP_ADDRESS> -> tova e IP addresa ti tua, ne imeto

> # <VirtualHost IP_ADDRESS>
> #    ServerAlias www.* plomba.net
> #    ServerAdmin webmaster@xxxxxxxxxx
> #    DocumentRoot /usr/local/apache/htdocs
> #    ServerName www.plomba.net
> #    ErrorLog /usr/local/apache/logs/plomba.error.log
> #    TransferLog /usr/local/apache/logs/plomba.transfer.log
> #</VirtualHost>

>  <VirtualHost IP_ADDRESS>
>     ServerAlias kateto178.* plomba.net
>     ServerAdmin webmaster@xxxxxxxxxx
>     DocumentRoot /usr/local/apache/htdocs/kt
>     ServerName kateto178.plomba.net
>     ErrorLog /usr/local/apache/logs/kt.error.log
>     TransferLog /usr/local/apache/logs/kt.transfer.log
> </VirtualHost>

>  <VirtualHost IP_ADDRESS>
>     ServerAlias adm.* plomba.net
>     ServerAdmin webmaster@xxxxxxxxxx
>     DocumentRoot /usr/local/apache/htdocs/adm
>     ServerName adm.plomba.net
>     ErrorLog /usr/local/apache/logs/adm.error.log
>     TransferLog /usr/local/apache/logs/adm.transfer.log
> </VirtualHost>

>  <VirtualHost IP_ADDRESS>
>     ServerAlias defekt.* plomba.net
>     ServerAdmin defekt@xxxxxxxxxx
>     DocumentRoot /home/defekt/htdoc
>     ServerName defekt.plomba.net
>     ErrorLog /usr/local/apache/logs/defekt.error.log
>     TransferLog /usr/local/apache/logs/defekt.transfer.log
> </VirtualHost>

>  <VirtualHost IP_ADDRESS>
>     ServerAlias mano.* plomba.net
>     ServerAdmin mano@xxxxxxxxxx
>     DocumentRoot /home/mano/web
>     ServerName defekt.plomba.net
>     ErrorLog /usr/local/apache/logs/mano.error.log
>     TransferLog /usr/local/apache/logs/mano.transfer.log
> </VirtualHost>

>  <VirtualHost IP_ADDRESS>
>     ServerAlias linux.* westcenter.net
>     ServerAdmin webmaster@xxxxxxxxxxxxxx
>     DocumentRoot /usr/local/apache/htdocs/linux
>     DirectoryIndex index.htm
>     ServerName linux.westcenter.net
>     ErrorLog /usr/local/apache/logs/linux.error.log
>     TransferLog /usr/local/apache/logs/linux.transfer.log
> </VirtualHost>

>  <VirtualHost IP_ADDRESS>
>     ServerAlias www.* pazardjik.com
>     ServerAdmin webmaster@xxxxxxxxxxxxx
>     DocumentRoot /usr/local/apache/htdocs/pazardjik
>     ServerName www.pazardjik.com
>     ErrorLog /usr/local/apache/logs/pazardjik.error.log
>     TransferLog /usr/local/apache/logs/pazardjik.transfer.log
> </VirtualHost>

>  <VirtualHost www.pazardjik.com>  TOVA ZASHTO SE POVTARIA !~!!?????
>     ServerAlias west.* pazardjik.com
>     ServerAdmin webmaster@xxxxxxxxxxxxx
>     DocumentRoot /usr/local/apache/htdocs/west
>     ServerName west.pazardjik.com
>     ErrorLog /usr/local/apache/logs/west.error.log
>     TransferLog /usr/local/apache/logs/west.transfer.log
> </VirtualHost>

>  <VirtualHost www.pazardjik.com>  CHE I POTRETVA !!!!!!!!!!!!
>     ServerAlias lucky.* pazardjik.com
>     ServerAdmin lucky@xxxxxxxxxxxxx
>     DocumentRoot /usr/local/apache/htdocs/lucky
>     ServerName lucky.pazardjik.com
>     ErrorLog /usr/local/apache/logs/lucky.error.log
>     TransferLog /usr/local/apache/logs/lucky.transfer.log
> </VirtualHost>

Posle! 
Vseki site na Apacha triabva da e ukazan vuv Virtual host !
Tova sus * vuv Alias ne moga da mu hvana mnogo smisula ?!?!

>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<

On 1/29/01, 6:33:22 PM, Marian Popov <mano@xxxxxxxxxx> wrote regarding 
lug-bg: Apache problem s vhosts:

> Zdraveite.

> Imam slednia problem s moite vhosts v apache.

> Znachi pritejavam 3 domaina. Za vseki edin ot domainite iskam da imam
> vhosts www. Da obache shtom sloja samo na edinia vhost www i sichki drugi
> ruhvat i zapochvat da otvariat stranicata, koiato e na pyrvia domain s
> www.

> Pokazvam kak sym konfiguriral vhosts:

> ServerName plomba.net
> NameVirtualHost plomba.net

> # <VirtualHost www.plomba.net>
> #    ServerAlias www.* plomba.net
> #    ServerAdmin webmaster@xxxxxxxxxx
> #    DocumentRoot /usr/local/apache/htdocs
> #    ServerName www.plomba.net
> #    ErrorLog /usr/local/apache/logs/plomba.error.log
> #    TransferLog /usr/local/apache/logs/plomba.transfer.log
> #</VirtualHost>

>  <VirtualHost www.plomba.net>
>     ServerAlias kateto178.* plomba.net
>     ServerAdmin webmaster@xxxxxxxxxx
>     DocumentRoot /usr/local/apache/htdocs/kt
>     ServerName kateto178.plomba.net
>     ErrorLog /usr/local/apache/logs/kt.error.log
>     TransferLog /usr/local/apache/logs/kt.transfer.log
> </VirtualHost>

>  <VirtualHost www.plomba.net>
>     ServerAlias adm.* plomba.net
>     ServerAdmin webmaster@xxxxxxxxxx
>     DocumentRoot /usr/local/apache/htdocs/adm
>     ServerName adm.plomba.net
>     ErrorLog /usr/local/apache/logs/adm.error.log
>     TransferLog /usr/local/apache/logs/adm.transfer.log
> </VirtualHost>

>  <VirtualHost www.plomba.net>
>     ServerAlias defekt.* plomba.net
>     ServerAdmin defekt@xxxxxxxxxx
>     DocumentRoot /home/defekt/htdoc
>     ServerName defekt.plomba.net
>     ErrorLog /usr/local/apache/logs/defekt.error.log
>     TransferLog /usr/local/apache/logs/defekt.transfer.log
> </VirtualHost>

>  <VirtualHost www.plomba.net>
>     ServerAlias mano.* plomba.net
>     ServerAdmin mano@xxxxxxxxxx
>     DocumentRoot /home/mano/web
>     ServerName defekt.plomba.net
>     ErrorLog /usr/local/apache/logs/mano.error.log
>     TransferLog /usr/local/apache/logs/mano.transfer.log
> </VirtualHost>

>  <VirtualHost www.westcenter.net>
>     ServerAlias linux.* westcenter.net
>     ServerAdmin webmaster@xxxxxxxxxxxxxx
>     DocumentRoot /usr/local/apache/htdocs/linux
>     DirectoryIndex index.htm
>     ServerName linux.westcenter.net
>     ErrorLog /usr/local/apache/logs/linux.error.log
>     TransferLog /usr/local/apache/logs/linux.transfer.log
> </VirtualHost>

>  <VirtualHost www.pazardjik.com>
>     ServerAlias www.* pazardjik.com
>     ServerAdmin webmaster@xxxxxxxxxxxxx
>     DocumentRoot /usr/local/apache/htdocs/pazardjik
>     ServerName www.pazardjik.com
>     ErrorLog /usr/local/apache/logs/pazardjik.error.log
>     TransferLog /usr/local/apache/logs/pazardjik.transfer.log
> </VirtualHost>

>  <VirtualHost www.pazardjik.com>
>     ServerAlias west.* pazardjik.com
>     ServerAdmin webmaster@xxxxxxxxxxxxx
>     DocumentRoot /usr/local/apache/htdocs/west
>     ServerName west.pazardjik.com
>     ErrorLog /usr/local/apache/logs/west.error.log
>     TransferLog /usr/local/apache/logs/west.transfer.log
> </VirtualHost>

>  <VirtualHost www.pazardjik.com>
>     ServerAlias lucky.* pazardjik.com
>     ServerAdmin lucky@xxxxxxxxxxxxx
>     DocumentRoot /usr/local/apache/htdocs/lucky
>     ServerName lucky.pazardjik.com
>     ErrorLog /usr/local/apache/logs/lucky.error.log
>     TransferLog /usr/local/apache/logs/lucky.transfer.log
> </VirtualHost>

> I taka sichkoto tova si raboti do momenta, v koito ne se opitam da si
> pusna www.plomba.net. Togava stava edna boza i www.pazardjik.com zapochva
> da otvaria stranicata na www.plomba.net.

> Ne moga da razbera kyde byrkam.

> Niakakvi idei ?

> 10x mano

> =====================================
> == plomba.net System Administrator ==
> =====================================

> ==================================================================
> A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
> Otpiswaneto RABOTI !!! : Majordomo@xxxxxxxxxxxxxxxxxx UNSUBSCRIBE LUG-BG
> http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara 
Zagora
==================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
Otpiswaneto RABOTI !!! : Majordomo@xxxxxxxxxxxxxxxxxx UNSUBSCRIBE LUG-BG
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora



 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.