Solved

How do I setup subdomain.mydomain.com?

Posted on 2000-02-26
6
192 Views
Last Modified: 2013-12-28
Does anybody know how I can setup my IIS(or whatever) so that I can point abc.mydomain.com to one folder while xyz.mydomain.com to another folder?

What I am asking is how do I setup the subdomain in IIS.(I have only one IP)
0
Comment
Question by:juiting
6 Comments
 
LVL 12

Expert Comment

by:j2
ID: 2562599
Unless you controll the DNS for your domain, you can't do this without aid from your ISP. Do you have control of your DNS?
0
 
LVL 1

Expert Comment

by:jmatwyko
ID: 2563936
Having multilple entries (abc.xyz.com,cba.xyz.com,blah.xyz.com)all pointing to the same IP is very normal in dns zone files. Your ISP can do this entry easily.  I think you need to set up the web server to use host header detection to direct the browser to the correct site.  

1. create your 1st web site using mmc for iis.  assign it the correct IP address, I assume that you have done this already.
2. create your 2nd site just like the first, assigning it the same address.  In the same properties page (web site tab) click on the advanced button.
3. highlight the listed address, it will be the same as the 1st website.  choose edit and use the FQDN of your 2nd site as the host header.  This lets IIS know which site to pull up.  You don't have to change port # or anything else.

Check temp.newphase.com and www.newphase.com
as they are both on the same IP running under IIS using the host header to determine which site to pull up.

BTW, it took longer to type this out than enter a new address record for the name server and create the new site.

good luck.
0
 

Expert Comment

by:AGB
ID: 2563947
Please, read carefully IIS documentation (if you have IIS 4.0 or later) about virtual servers assigned to one IP
0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
LVL 3

Accepted Solution

by:
klover earned 100 total points
ID: 2564695
I believe the feature you are talking about is called HTTP Headers - not subdomain.  You want to have two web sites, sitea.mycompany.com and siteb.mycompany.com right?

If so...
Create two sites by right clicking on the server from the Internet Service Manager.  Then choose New > Web Site.  Follow defaults.  Set both sites to use the same IP, same port (80) but different home directories.

Right click on the root of your first website in the Internet Service Manager, then go to properties.  Under the WebSite Tab click Advanced. Now click Add.  Set port to 80.  Give your site a name (sitea).

Now do the same for the second site, but under Host Header Name, put siteb.

Right click on each site and then click start!!!  You now have two sites running on the same IP and known port!!!
0
 
LVL 12

Expert Comment

by:j2
ID: 2566144
klover: So? Unless he also has a dns entry pointing to the domain it wont resolve and will not work. Your answer only convers how to set the iis up. not the DNS which is also required.
0
 
LVL 3

Expert Comment

by:klover
ID: 2566190
j2

A. He did not ask about DNS, he asked about IIS.

B. Maybe it's a local, private site?  I don't know because he did not say.  

C. Apparently DNS was not his problem...

D. jmatwyko had DNS covered...

E. Sorry to jmatwyko for posting the same answer.  I only read the first part of your answer concerning DNS.  I owe you one...
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
An article on effective troubleshooting
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question