[Xitami] win2000 .. "hosts" file

Francis Turner xitami@lists.xitami.org
Fri, 25 Jan 2002 14:13:08 +0100


Wolfgang Schneider wrote:

>Hi everyone,
>
>I am running Xitami on a Win2k machine forthe purpose of testing
>websites I develop and have now installed Xitami 2.4d9, with php 4.1
>and also mySQL.
>
>Having had to re-install (with re-format) Win2k, I forgot to make a
>copy (or at least a "mental image" :-) ...) of the entries in the
>"hosts" file ... where the various virtual hosts and their respective
>*.cfg files were each listed on a separate line ...  
>(I know ... how could I have been so much in a hurry and not think of
>backing this file up ... :-(  :-(  ...)
>
>Can someone please quickly help my memory on the syntax of what each
>line should look like ? 
>I think it should be something like 
>
>127.0.0.1 www.domain.com ... ??????? (here then is the trouble)
>
Here is my hosts file which is in the path you can see
C:\WINNT\SYSTEM32\DRIVERS\ETC>type hosts
# Copyright (c) 1993-1999 Microsoft Corp.
#
# Dies ist eine HOSTS-Beispieldatei, die von Microsoft TCP/IP
# f³r Windows 2000 verwendet wird.
#
# Diese Datei enthõlt die Zuordnungen der IP-Adressen zu Hostnamen.
# Jeder Eintrag muss in einer eigenen Zeile stehen. Die IP-
# Adresse sollte in der ersten Spalte gefolgt vom zugeh÷rigen
# Hostnamen stehen.
# Die IP-Adresse und der Hostname m³ssen durch mindestens ein
# Leerzeichen getrennt sein.
#
# Zusõtzliche Kommentare (so wie in dieser Datei) k÷nnen in
# einzelnen Zeilen oder hinter dem Computernamen eingef³gt werden,
# aber m³ssen mit dem Zeichen '#' eingegeben werden.
#
# Zum Beispiel:
#
#      102.54.94.97     rhino.acme.com          # Quellserver
#       38.25.63.10     x.acme.com              # x-Clienthost

127.0.0.1       localhost dell laptop

Francis



-- 
...if the US Government were ever to get really serious about Internet 
security, the top players in Microsoft's management hierarchy would find 
themselves handcuffed, blindfolded, led onto a tarmac within some obscure 
Air Force base, and shot.
-- Thomas C Greene (http://www.theregister.co.uk/content/55/23223.html)