Click to See Complete Forum and Search --> : Apache: Adding another virtual web host


e40
12-11-2000, 06:39 PM
Hello -

I have a domain registered, and my apache server is working well.

What I'd like to do is add another virtual host - let's say foo.mydomain.com. In my RR's on the name server I have www.mydomain.com (http://www.mydomain.com) pointing to my IP. I assume that I'll have to add the foo.mydomain.com in there, pointing to the same ip.

Question is, what is required in my apache conf file for this? Is it simple enough to do a quick RTFM and do it? Or is there a cheat-sheet out there for this? I for one find the apache conf file to be scary!

I guess I'm not that fly with Apache just yet http://www.linuxnewbie.org/ubb/smile.gif TIA

--Ben

flar
12-11-2000, 06:57 PM
im not really good on this subject. but i think, in order to have foo.mydomain.com, it should be configured at a DNS. (right?) then u can proceed with ur configuration on apache.

-------------------------
"to be or not to be..
that is the question.."
-shakespeare-
-------------------------

[This message has been edited by flar (edited 11 December 2000).]

goozey
12-11-2000, 06:59 PM
Yup... RTFM.
http://httpd.apache.org/docs/vhosts/

pretty straight forward actually.... I managed to get a combination of name based and IP based hosts up in minutes.

e40
12-11-2000, 08:28 PM
*Doing the Toyota jump!*

Wow - not too bad! Took my about 7 minutes.

Here's my proof:
http://www.pafb.org/ http://ftp.pafb.org/

Thanks dudes!

--Ben