Setting up a subdomain . . .

etrevino

Junior Member
May 1, 2002
2
0
0
I own 1453.org
I was going to host it from a machine with a static IP using Apache on a WinXP pro system. I want to also host two subdomains:
lindsay.1453.org
and
bleusama.1453.org

How do I set up the subdomains?

Any advice is appreciated.
Thanks!
 

Pheran

Diamond Member
Apr 26, 2001
5,740
35
91
I'm pretty sure you're asking how to set up several virtual web hosts, not subdomains. If so, just configure those names in DNS to all point to your Apache server IP, then configure name-based virtual hosts in Apache to server the different names. Check the Apache vhost docs here. That's for Apache 2.0, but there's a similar page for 1.3.
 

etrevino

Junior Member
May 1, 2002
2
0
0
My only problem with using a virtual host is that (and this is if I understand it right) I would need to own the domain names that I'm using. All virtual hosting allows me to do is serve two domains off of one machine. What I want to do is slightly different, in that I want to use my current domain to provide hosting to two other websites. I could use www.1453.com/bleusama, but I'd much rather use bleusama.1453.com/ . This is what I need help doing.

Thanks for any help!
 

slackware1995

Member
Apr 4, 2002
109
0
0


<< My only problem with using a virtual host is that (and this is if I understand it right) I would need to own the domain names that I'm using. All virtual hosting allows me to do is serve two domains off of one machine. What I want to do is slightly different, in that I want to use my current domain to provide hosting to two other websites. I could use www.1453.com/bleusama, but I'd much rather use bleusama.1453.com/ . This is what I need help doing.

Thanks for any help!
>>



Simply put you are confusing the issue.

All you do is setup DNS to point www.1453.com to ip xxx.xxx.xxx.xxx and bleusama.1453.com to ip xxx.xxx.xxx.xxx or xxx.xxx.xxx.yyy or you could also do www.bleusama.com to ip xxx.xxx.xxx.xxx or xxx.xxx.xxx.yyy

Then in Apache, you configure Virtual Host to serve the correct pages for the host value.


I hope this makes sense. :)