Lance Robertson wrote:
> the web browser when it points to DOMAIN. I want to be able to set up
> fred.DOMAIN
> and blah.DOMAIN so they will serve via the HTTP as well but will server out of
> their
> own directories.
> I have a Cacheing DNS running. I have one "real" IP
> address
> which is pretty much constant and is assigned by the cable company. My DOMAIN
> is accessible to the outside world via the internet just fine.
>
> When I pull up fred.DOMAIN it says the server doesn't have a DNS entry.
Hi Lance,
Two things you need to do here. The first is set up the sub-domains in
your DNS (or get your ISP to add the A records. You may only have one IP
address so for example :-
domain.com. 86400 NS ns2.domain.com.
domain.com. 86400 NS ns0.domain.com.
domain.com. 86400 NS ns1.domain.com.
domain.com. 86400 A 1.1.1.1 (silly IP example)
fred.domain.com. 86400 A 1.1.1.1
This is only an example with MX records missed out for quickness!
fred.domain.com would have the same IP address as you main domain. A
good place to start with DNS is to read 'DNS & BIND' published by
O'Reilly and Associates.
Secondly Apache needs to know about Virtual Hosts. There is a whole
section in the Apache documentation about virtual hosting. The docs on
Virtual Hosts can be found at
http://www.apache.org/docs/vhosts/index.html.
The main file you need to configure is /etc/httpd/conf/httpd.conf. At
the end of this file you will be able to add virtual hosts.. e.g :-
<VirtualHost fred.domain.com>
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/httpd/html/fred/
ServerName fred.domain.com
ErrorLog /etc/httpd/logs/fred_error
TransferLog /etc/httpd/logs/fred_access
</VirtualHost>
If my memeory serves me right, you need to set a few other options to
use Virtual Hosts so definately read the documentation.
HTH
Cheers
Claire
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.