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

 

начало

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

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

семинари ...

документи

как да ...

 

 

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

lug-bg: Apache problem s vhosts


  • Subject: lug-bg: Apache problem s vhosts
  • From: mano@xxxxxxxxxx (Marian Popov)
  • Date: Mon, 29 Jan 2001 18:33:22 +0200 (EET)



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



 

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

 

линукс за българи
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.