Solved

Subdomains

Posted on 2004-04-04
5
373 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 50 total points
Comment Utility
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
Comment Utility
so i'd make a host header that that subsite.domain.net ?
0
 

Author Comment

by:bamnet11
Comment Utility
^^ that said...
0
 
LVL 2

Expert Comment

by:ryangclear
Comment Utility
thats right
0
 
LVL 2

Expert Comment

by:ElForesto
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
A safe way to clean winsxs folder from your windows server 2008 R2 editions
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

771 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now