Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

virtual hosting

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
hi

I'am trying to create virtual domains (I have xyz.com and I'am trying to
create a.xyz.com and b.xyz.com etc. and respective sites for those two
domains) on Apache web server under Linux 6.2.

I shall be grateful if somebody can help me out with the process.

I have an elementary query here, if I do create a.xyz.com how does a
browser resolve the DNS name to point to my site (xyz.com)

THanks in advance and anticipation

Regards
Sachin
 
well, your issue is basically DNS.. i would point u to the famous tutorial, DNS and BIND... a really nice book, however, i would give u these tips...

xyz.com could be your domain, and a.xyz.com and b.xyz.com are your subdomains within xyz.com ... these entries u can easily make in your domain name database... and then point them to either the IP address of your web server, or just point them to another domain name...

to be able to point a.xyz.com to xyz.com u would need to have a CNAME record in your DNS database... this is called a canonical name, and what it does is point one domain name to another, or one subdomain to another, and whatever..... the basic thing to remember is that the domain u want to redirect should not already have a record in the database... for instance, to redirect a.xyz.com to xyz.com u would make this entry....

a.zyx.com IN CNAME xyz.com

however, u would need to have an address or A record for xyz.com so that xyz.com can be mapped back to an IP address... that record would be something like:

xyz.com IN CNAME 1.2.3.4

assuming 1.2.3.4 is the IP address of your web server....

also, u will need to edit your web server to serve requests based on the URL sent in the header request.. u can get more documentation on that from your web server distro...

good luck...

AKNIT
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top