New Zenner
- Join Date:
- Feb 2009
- Location:
- Carlisle, Cumbria, UK
- Posts:
- 28
- Plugin Contributions:
- 0
Installing for local server
I received my book this morning and I am trying to set up a local store on my pc I have installed xampp and its working the next bit was to open the local.com page wich was fine the next bit is where I am getting stuck I opened notepad as administrator and the opened
C:\WINDOWS\system32\drivers\etc\hosts
the file opens ok and I can save the changes but when I add the lines suggested
127.0.0.1 https://www.example.com # For browser access
127.0.0.1 mail.example.com # For email access
127.0.0.1 example.com # For mercury mail server
I have tried with and without the hash but it does not work with either
127.0.0.1 https://www.example.com # For browser access
127.0.0.1 mail.example.com # For email access
127.0.0.1 example.com # For mercury mail server
this is the file
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
localhost name resolution is handle within DNS itself.
127.0.0.1 localhost
::1 localhost
127.0.0.1 https://www.example.com # For browser access
127.0.0.1 mail.example.com # For email access
127.0.0.1 example.com # For mercury mail server
can someone tell me what I am doing wrong
when I try localhost .com without the above it opens the page as suggested