Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Aug 96 18:17:59 +1000
From:      Mikel Lindsaar <mikel@cynet.net.au>
To:        freebsd-isp@freebsd.org
Subject:   Virtual Hosting and Apache
Message-ID:  <199608290818.SAA00191@esimene.cynet.net.au>

next in thread | raw e-mail | index | archive | help
Right.

Let me see if I have this straight (it is working for one domain but I am
not sure if it will work for more)

I am using Apache 1.0.5 and FreeBSD 2.1.0 Stable

I want to virtual host www.my.com.au and www.au.some.com.

Under /usr/local/etc/http/conf/httpd.conf I have the following (relevant
only)

[Begin Sniplette]

BindAddress *

<VirtualHost www.my.com.au>
ServerAdmin webmaster@cynet.net.au
DocumentRoot /www/virtual/www.my.com.au
ServerName www.my.com.au
ErrorLog logs/www.my.com.au-error_log
TransferLog logs/www.my.com.au-access_log
</VirtualHost>

<VirtualHost www.au.some.com>
ServerAdmin webmaster@cynet.net.au
DocumentRoot /www/virtual/www.au.some.com
ServerName www.au.some.com
ErrorLog logs/www.au.some.com-error_log
TransferLog logs/www.au.some.com-access_log
</VirtualHost>

[EndSniplette]

I have created the directories /www/virtual/www.my.com.au and
/www/virtual/www.au.some.com and put the relevant files in there.

I have organised the following DNS entries to be put in their appropriate
files:

www.my.com.au.  IN A  203.24.16.10  <== "unused" IP Address
www.au.some.com.  IN A  203.24.16.12  <== "unused" IP Address 10  IN PTR 
www.my.com.au.
12  IN PTR  www.au.some.com.

Now.

Does anyone see any problems with this?  And can I keep doing this until I
run out of system resources (ram, hdd, processor speed)?

Also.

Does the virtual hosting only apply to complete domains?  Or can you
virtual host a single name of a domain?  Such as in the above example,
creating an entry for computer1.cynet.net.au when the httpd process is
running on www.cynet.net.au?

Thanks all for your time

Regards and Salutations,

Mikel

-- 
-----------------------------------------------------------
Mikel Lindsaar        |  "The dream is the foundation,
mikel@cynet.net.au    |        of our society!" 
-----------------------------------------------------------




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199608290818.SAA00191>