Main Server and Virtual Hosts (Apache)
P@nos
ngeorg at nxmail.gr
Sun Nov 21 17:58:49 EET 2004
>>
>> An zhthso apo ton server to www.mainserver.gr tha mou servirei to 1o
>> virtual host pou einai dhlomeno sto vh.conf. (an antistrepso thn seira
twn
>> v1 kai v2 sto vh.conf, apanta pali to 1o). An den kano include to vh.conf
>> tha apanthsei to www.mainserver.gr kanonika apo thn dhlosh tou ston main
>> server.
>>
>> Den thelo na dhloso to www.mainserver.gr mesa sto vh.conf san virtual
>> host. Auto pou thelo einai an zhtountai ta www.v1.gr kai www.v2.gr na
>> apantoun apo to virtual host eno an zhteite to www.mainserver.gr na
apanta
>> apo ton main server. Giati den kathete me tipota?? any ideas?
>>
>Βασικά πρέπει να ελέγξεις τον Bind σου , για στείλε λίγο την ζώνη να δω πως
>την έχεις. Επίσης στον apache πως το έχεις δηλωμένο το Vhost ?
>NameVirtualHost η VirtualHost σκέτο?
basika den xrhsimopoio katholou dns...paizei se topiko diktuo (2 pc) kai exo
peiraksei to hosts na deixnei ston apache server (192.168.0.3)
192.168.0.3 www.virtual1.gr
192.168.0.3 www.asfaleia.gr
192.168.0.3 www.mainserver.gr
ta www.virtual1.gr kai www.asfaleia.gr einai ta 2 virtual hosts mou
sou paratheto kai to arxeio me ta virtual hosts...
# MY VIRTUAL HOSTS
NameVirtualHost 192.168.0.3
<VirtualHost 192.168.0.3>
ServerAdmin admin at asfaleia.gr
ServerName www.asfaleia.gr
DocumentRoot "/srv/www/www.asfaleia.gr/htdocs/"
<Directory "/srv/www/www.asfaleia.gr/htdocs/">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost 192.168.0.3>
ServerAdmin admin at virtual1.gr
ServerName www.virtual1.gr
DocumentRoot "/srv/www/www.virtual1.gr/htdocs/"
<Directory "/srv/www/www.virtual1.gr/htdocs/">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
....to pio periergo sou eipa pio einai. Otan kano include to arxeio me ta
virtual hosts to www.mainserver.gr peftei sto 1o vhost...eno an den to kano
apanta kanonika apo ton mainserver...
ug. to kako einai pos tha orkizomoun oti epaize auto prin apo merikes
meres...prin apo kapoia peirammata dhladh...alla den thumamai ti...elegxa ta
panta ...
ug. dokimasa epishs na afhso to ServerName tou main server eite keno...eite
me thn ip eite me olo to name (www.mainserver.gr) ...alla pali tipota ...
P at nos
More information about the Linux-greek-users
mailing list