SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Nov 2010
    Location
    ONS
    Posts
    157
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Link Domains/Subdomains to folders in a PC Server?

    My PC has a configuration to work as a server. It has quad core processor with 8GB RAM. So I made it a server. Now i want to know, how can I link the domain names to various folders in my WAMP. At present, when I am calling my IP address e.g. 123.234.345.456, I get index file from C:/wamp/www/. But I want to forward e.g. www.example.com to folder C:/wamp/www/example and test.example.com to folder C:/wamp/www/test Does anyone have idea how to do this? And what should I do in my domain provider's controls, so that they can fetch data from my server, without changing URL.
    Last edited by TheRaptor; May 3, 2012 at 05:08. Reason: OP forgot to turn off auto-link
    I love to help and also to get helped.

  2. #2
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,650
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    Mohan,

    It's past midnight so my answer will be brief: look at the conf/extras/httpd-vhosts.conf file and your hosts file (Windows/system32/drivers/etc/hosts) and, using the examples in each, you'll have unlimited local domains in no time at all.

    G'nite!

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •