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 6867099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:16:02+00:00 2026-05-27T03:16:02+00:00

I have WAMP installed on my Windows Computer. I want to set up a

  • 0

I have WAMP installed on my Windows Computer.

I want to set up a few virtual servers, on the following addresses:

127.0.0.1 to localhost/website1/
127.0.0.2 to localhost/website2/

Here’s the contents of my host file:

# Copyright (c) 1993-2009 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

# localhost name resolution is handled within DNS itself.
#   127.0.0.1       localhost
#   ::1             localhost
127.0.0.1 localhost/website1
127.0.0.2 localhost/website2

But none of them seem to work. Both addresses just lead me to the localhost ROOT.

If I visit http://localhost/website1 or http://localhost/website2 they both work.

Am I doing something wrong?

I’m completely flexible with the IP addresses.

  • 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-05-27T03:16:03+00:00Added an answer on May 27, 2026 at 3:16 am

    You need to add your virtual hosts to httpd-vhosts.conf (of apache server, it is located inside a folder like this wamp\bin\apache\Apache2.2.11\conf\extra)
    Example for adding virtual host is in that file.
    and you also may need to uncomment(remove # sign) from following line in your httpd.conf file

    Include conf/extra/httpd-vhosts.conf
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Windows 7 and WAMP localhost on drive D: . I installed Symfony2
I want to use the mail() function from my localhost. I have WAMP installed
I have installed WAMP and running PHP scripts on localhost. I have enabled cURL.
I have installed PHP using wamp server in Windows and I have give the
I just installed WAMP on Windows XP. I have a simple PHP file that
I have a big problem opening http://localhost/ on Windows 7 (beta). I installed this
I have started to learn PHP. So installed WAMP server on my windows 7
I have Windows 7 (32-bit) installed on laptop. I downloaded WAMP server and installed
I have installed WAMP 2.1 on Windows 7 with PHP-5.3.4 and Apache-2.2.17 but instead
I have Wamp Server 2.1 installed on my Windows XP system. It was working

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.