Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Subdomains

Posted on 2004-04-04
5
Medium Priority
?
385 Views
Last Modified: 2010-04-13
I'm running one windows 2000 machine for my webserver.  My setup looks like this: Internet to router - router forward port 80 & 21 to 192.168.0.4 (windows 2000 server).  I want to be able to host subdomains.  I'm going to buy my domain and have it point to my router's ip. How can i setup subdomains to run on my single machine???
0
Comment
Question by:bamnet11
  • 2
  • 2
5 Comments
 
LVL 2

Accepted Solution

by:
ryangclear earned 150 total points
ID: 10754002
use host headers. I'm assuming your talking about subdomain websites right?
like

subdomain.yourdomain.com
subdomain2.yourdomain.com

you'll also have to add A records to your dns server to point to your router

yourdomain.com                         -    points to your router
subdomain.yourdomain.com       -    points to your router
subdomain2.yourdomain.com     -    points to your router

the hostheaders will direct the webclient to the right website
0
 

Author Comment

by:bamnet11
ID: 10754071
so i'd make a host header that that subsite.domain.net ?
0
 

Author Comment

by:bamnet11
ID: 10754072
^^ that said...
0
 
LVL 2

Expert Comment

by:ryangclear
ID: 10754073
thats right
0
 
LVL 2

Expert Comment

by:ElForesto
ID: 10761059
Any HTTP 1.1 compliant web server software should handle subdomains properly. If all of your subdomains are going to be on the same system, then the record for *.domain.com should point all miscelaneous undefined subdomains to your IP address. HTTP 1.1 has been around forever, so every major web server software supports it. (IIS, Apache, etc.)
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
If you have come across a situation where you need to find some EDB mailbox recovery techniques, then here you will find the same. In this article, we will take you through three techniques using which you will be able to perform EDB recovery. You …
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses
Course of the Month10 days, 22 hours left to enroll

885 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