Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8099169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:18:58+00:00 2026-06-05T22:18:58+00:00

How do I setup a local server so that if you visit something like

  • 0

How do I setup a local server so that if you visit something like http://www.my-dev-branch.com on the local machine it points to the files on your system, e.g. ‘c:/wamp/www/www.my-dev-copy.com’

Note, I’m on Windows 7 using WAMP

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T22:19:01+00:00Added an answer on June 5, 2026 at 10:19 pm

    I found what I was looking for below:

    http://www.infotales.com/seting-up-local-domains-windows-apache-wamp/

    Recently had to setup local domains for my php projects. Normally I use http://localhost/project_directory urls for normal project, but for a new project I had to setup few local domains. For existing projects I still need localhost (127.0.0.1) available along local domains like project.localhost.com. Setting up local domains and virtual hosts is easy and I found it worth sharing.
    I am using Windows Vista Business with WampServer Version 2.0 installed. This method should also work for standalone apache installation.
    First we need to add host entry in windows host. To do this, open file
    C:\Windows\System32\drivers\etc\hosts
    in some text editor, by using Open With menu from right click.
    Note that C: represent your drive where windows is installed, in most cases it will be C: but it can be different.
    You will see content smiler to
    # Copyright (c) 1993-2006 Microsoft Corp.
    #
    # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
    #
    # This file contains the mappings of IP addresses to host names. Each
    # entry should be kept on an individual line. The IP address should
    # be placed in the first column followed by the corresponding host name.
    # The IP address and the host name should be separated by at least one
    # space.
    #
    # Additionally, comments (such as these) may be inserted on individual
    # lines or following the machine name denoted by a '#' symbol.
    #
    # For example:
    #
    # 102.54.94.97 rhino.acme.com # source server
    # 38.25.63.10 x.acme.com # x client host
    127.0.0.1 localhost
    ::1 localhost
    Now add this line
    127.0.0.1 project.localhost.com
    
    at the end. Here you can add any custom domain like projectname.local etc.
    The line added tells windows to resolve to local IP when ever this domain name is requested by browser etc. Be sure not to add any live existing domains as they will be resolved to localhost instead of live host.
    Now we need to add virtual host entry in Apache server so we can server our project files. For this apache config file which in this case is
    C:\wamp\bin\apache\Apache2.2.11\conf\httpd.conf
    . Open the file with text editor and find following lines
    # Virtual hosts
    # Include conf/extra/httpd-vhosts.conf
    The second line tells conf file to include another configuration file which contains virtual host configurations. The line is commented by default so we have to enable it.
    Now remove
    #
    sign from start of the second line and save file, so the line will look
    Include conf/extra/httpd-vhosts.conf
    .
    Now open file
    C:\wamp\bin\apache\Apache2.2.11\conf\extra\httpd-vhosts.conf
    to add virtual host entries.
    Add following lines to the file.
    <VirtualHost 127.0.0.1>
    DocumentRoot "C:/websites/myproject/public/"
    ServerName project.localhost.com
    ServerAlias project.localhost.com
    </VirtualHost>
    You may also need to remove any example virtual hosts.
    After this restart your apache and test the url http://project.localhost.com/ in browser.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to setup local domains like sub1.mydomain.dev and www.mydomain.dev on my local IIS
I have just setup VisualSVN on my local machine and on our server that
Our setup as follows: We have a local development server running Ubuntu, with a
I've set up Symfony authentication on my local dev server, it works perfectly in
I have this membership site setup on my local machine using the ASP.NET membership
I want to create endpoints that can be local in one setup and remote
I setup JBoss 4.2.2 GA on a local server of mine. I am able
I'm reconfiguring a build server that someone else setup a long time ago to
Is it possible to configure my local setup (running Wampserver) so that my PHP
So everything is setup for my client on my local server but I now

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.