Apache...and Virtual Hosts

P@nos ngeorg at nxmail.gr
Thu Nov 18 13:40:24 EET 2004


Xairete paides....

Sthn prospatheia mou na egkatastiso apache (2.0.49) ego tis 2 parakato apories....(paizei kanonika o apache apla den mporo na bro ikanopoihtikh apanthsh se auta)

1) ston main server dhlonoume to ServerName...auto giati ginetai? gia tupikous logous? 

Kai ekshgoume : exoume 2 pc. o enas me apache server kai o allos o client. Esto oti ston client peirazoume to etc host (gia na mhn trexoume me dns server) oste to www.mainserver.gr na peftei ston server.... eite baloume ip ston client gia to request, eite baloume www.mainserver.gr eite exoume kanei allh dhlosh sto etc host dld to www.changed.gr na peftei sthn ip tou server tha apanthsei aneksarthtws apo to ServerName.... so? giati to bazoume?

2) esto dhlono os virtual host to parakato

        <VirtualHost 192.168.1.200>
             ServerName www.myvirtualhost.gr
             # Other directives go here
       </VirtualHost>

giati xreiazetai kai to NameVirtualHost ?? den tha eprepe auto na paizei...tou leei hdh oti an sou zhthsoun to tade servername kai skasei sthn tade ip (192.168.1.200) apanta....

sto Apache Server2 Bible tou Mohhamed Kabir leei to parakato 
NameVirtualHost

If you plan to use name-based virtual hosts, you need to use the NameVirtualHost directive. Although addr can be the host name, I recommend that you always use an IP address.

Syntax: NameVirtualHost addr[:port]

Default setting: None

Context: Server config

kati to opoio den mou leei kai polla...Einai san na leei...balte to NameVirtualHost gia namebased virtual host..alla sas protino ki olas na einai ip...

(btw to parapano paradeigma den paizei an den balo NameVirtualHost 192.168.1.200)

kaneis kamia idea?? (eimai sigouros oti tha exete..)

P at nos (thxxxx)


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hellug.gr/pipermail/linux-greek-users/attachments/20041118/42b2f456/attachment.htm>


More information about the Linux-greek-users mailing list