Modifying the Hosts file

E

Edel

I want to temporarily override where an existing domain
name is pointing to, to allow me to test out a new
location.

I am working on Windows XP.

As I understand it, I should add an entry to the HOSTS
file, which I find located in the
Windows/System32/Drivers/ETC directory.

Currently there is one entry only in this HOSTS file:
127.0.0.1 localhost

USing Notepad, I added a line underneath thus:


159.xxx.xxx.xxx www.yyyyyyy.zz

to define the temporary location and saved the file (not
sure exactly what extension...)

When I try www.yyyyyy.zz in IE, I still get the original
site.

When I try http://159.xxx.xxx.xxx I get this error
message:

Directory Listing Denied
This Virtual Directory does not allow contents to be
listed.

Can any one help?

Rgds

Edel
 
S

Sharon F

I want to temporarily override where an existing domain
name is pointing to, to allow me to test out a new
location.

I am working on Windows XP.

As I understand it, I should add an entry to the HOSTS
file, which I find located in the
Windows/System32/Drivers/ETC directory.

Currently there is one entry only in this HOSTS file:
127.0.0.1 localhost

USing Notepad, I added a line underneath thus:


159.xxx.xxx.xxx www.yyyyyyy.zz

to define the temporary location and saved the file (not
sure exactly what extension...)

When I try www.yyyyyy.zz in IE, I still get the original
site.

When I try http://159.xxx.xxx.xxx I get this error
message:

Directory Listing Denied
This Virtual Directory does not allow contents to be
listed.

Can any one help?

Rgds

Edel

Place a file in that directory with the appropriate name for a home page:
index.htm or default.htm
When a specific page is not included in an URL, the browser will
automatically locate index.htm or default.htm.

Or add any *.htm file to the folder and then include its name in the URL.
Example: http://www.yyyyy.zzz/file.htm

By using just www.yyyy.zzz, you are asking for access to a root folder of a
web. Access is being denied by the security settings of the server.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

why hosts file is reset? 1
hosts file 6
host file 1
How does the hosts file work? 0
Where is the HOSTS file supposed to be located? 7
Must the Hosts file exist? 4
Can't save modifed HOSTS file 1
hosts file 1

Top