how to make sub domain on your local host

Discussion in 'Apache' started by feelexit, Aug 10, 2007.

  1. #1
    I added new sub domain name using cpanel on my vps server.

    Now I need to create this sub domain on my localhost, so i can test everything before I upload them.

    how can you create it? and if you have pages with your sub domain, how do you test them?
     
    feelexit, Aug 10, 2007 IP
  2. melon

    melon Peon

    Messages:
    30
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It depends on the software you run on your local host. What OS, what httpd, do you have your own dns server, etc. Please be more specific so I can help you.
     
    melon, Aug 11, 2007 IP
  3. hetalpatel33

    hetalpatel33 Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi

    I have same problem
    I am working on many sites.
    What I am doing? I am copy site and db from server and host to my local machine.

    for each domain i am using
    http://localhost:81/ for site1
    http://localhost:82/ for site2
    http://localhost:83/ for site3
    http://localhost:84/ for site4
    http://localhost:85/ for site5

    but now i have site with has more then 10 subdomains

    i have created that site as http://localhost:89/

    now how to configure their domain name


    here is the full details and let me know what are the chages is required to user like

    http://medical.com
    http://tx.medical.com
    http://nj.medical.com
    etc..


    O/s : Windows 2003 Server
    IIS : version 5.2
    we dont use any rewrite

    IIS Settings

    Property:
    Website Tab
    Description : Medical
    IpAddresss : (All Unassigned)
    TCP port : 89

    Advance:
    IpAddress :Default
    TCP Port :89
    Host Header Value :

    Can you help me what kind of changes required now.?

    Thank You in advance.

    Het Patel
     
    hetalpatel33, Apr 8, 2008 IP
  4. hetalpatel33

    hetalpatel33 Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hi

    Hope you wil get my message.
    If not then..
    can you tell me how i can configure subdomain in my local machine

    Thank You
    Het Patel
     
    hetalpatel33, Apr 8, 2008 IP