Modifying the Hosts file

  • Thread starter Thread starter Edel
  • Start date Start date
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
 
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.
 
Back
Top