delphi123 Posted December 14, 2007 Share Posted December 14, 2007 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? Quote Link to comment Share on other sites More sharing options...
farkewie Posted December 14, 2007 Share Posted December 14, 2007 Yes nothing to do with php 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.