httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <Owen.Bo...@swx.com>
Subject RE: Virtual Host Directives
Date Thu, 25 Jul 2002 09:02:04 GMT
It is not the <VirtualHost > contianer which defines the server name. It is the ServerName
directive. So you do:

NameVirtualHost 192.168.1.1
<VirtualHost 192.168.1.1>
  ServerName aaa.com
  ....
</VirtualHost>
<VirtualHost 192.168.1.1>
  ServerName bbb.com
  ....
</VirtualHost>
etc..

i.e., you use the same IP address in all <VirtualHost > containers and differentiate
between them with different ServerName directives.

Rgds,

Owen Boyle


-----Original Message-----
From: Vincent Kruger [mailto:alienator@spils.com]
Sent: Donnerstag, 25. Juli 2002 10:30
To: users@httpd.apache.org
Subject: Re: Virtual Host Directives


Is there now way in which i can specify say the ip plus the hostmane.
Coz i'm going to have more than one hostname on that specific IP addie.
----- Original Message ----- 
From: Albrecht Marcus 
To: 'users@httpd.apache.org' 
Sent: Thursday, July 25, 2002 10:25 AM
Subject: AW: Virtual Host Directives


Hi,

you have to use the IP from the NameVirtualHost:

<VirtualHost 66.8.58.134:80>
  ServerAdmin hostmaster@abc.com
  DocumentRoot /home/nomza/abc
  ServerName abc.com
  ErrorLog /home/nomza/abc/error.log
  CustomLog /home/nomza/abcl/access.log common
</VirtualHost>

Marcus

-----Ursprüngliche Nachricht-----
Von: Vincent Kruger [mailto:alienator@spils.com]
Gesendet: Donnerstag, 25. Juli 2002 10:02
An: Apache MailingList
Betreff: Virtual Host Directives


Hi.

I've setup on my server this.

include /usr/local/conf/aliases.inc
include /usr/local/conf/directories.inc
include /usr/local/conf/virtualhosts.inc
include /home/nomza/apache.virtualhosts.inc
NameVirtualHost 66.8.58.134

Now I've place in the file /home/nomza/apache.virtualhosts.inc this.

<VirtualHost abc.com:80>
  ServerAdmin hostmaster@abc.com
  DocumentRoot /home/nomza/abc
  ServerName abc.com
  ErrorLog /home/nomza/abc/error.log
  CustomLog /home/nomza/abcl/access.log common
</VirtualHost>

What is wrong?
When ever i call abc.com it can't find the server.

Regards
Vincent Kruger
alienator@spils.com
---------------------------------------------------------------------------- 
Diese E-Mail ist vertraulich und kann darüber hinaus persönliche Inhalte haben. Bitte löschen
Sie die E-Mail und benachrichtigen Sie uns sofort, wenn Sie nicht der bestimmungsgemäße
Empfänger sind. Die SYCOR AG willigt in keine Verträge oder vertragliche Verpflichtungen
ein oder übermittelt rechtsverbindliche Angebote, die in Form von E-Mail versandt werden,
sofern dies nicht ausdrücklich in schriftlicher Form zwischen den Parteien vereinbart wurde.

This e-mail is confidential and may contain personal and/or priviledged material. Please delete
this e-mail and inform us immediately in case you are not the directed recipient. SYCOR AG
does not agree with contracts or contract obligations. Neither do we transmit legally binding
offers by e-mail unless this has been expressly agreed upon between the parties and documented
in written form.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message