Jump to content

virtual sites?


delphi123

Recommended Posts

Hi there,

 

Maybe a little offtopic, but if anyone can point me in the right direction, this'll help my php no end! ;)

 

Just wondering if it's possible using wamp to create a 'virtual site name'?

 

Currently I can just type localhost into firefox et al and it'll load the site, however for users on other pcs on the network who are wanting to access the site they have to type ip address + the directory which is not that intuitive...

 

Is it possible for me to set up like a virtual domain name so they can type test.site.com and it'll load?

Link to comment
Share on other sites

Yes nothing to do with php  :P

 

 

you need to edit a file called hosts "c:\windows\system32\hosts"

 

here is a sample where i added ty and ty.com

 



# 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 		ty
127.0.0.1 		ty.com
127.0.0.1       localhost
::1             localhost

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.