[En-Nut-Discussion] How to connecto to a virtual host

Jesper Hansen jesperh at telia.com
Fri Dec 23 19:39:52 CET 2005


I was trying to download a file using HTTP from my Linux machine, which 
has a number of domains on it.

I used NutDnsGetHostByName to pick up the IP which worked fine, then 
used a "GET /myfile.ext HTTP/1.0" e.t.c. to get the file.

It obviously didn't work, because the IP returned by NutDnsGetHostByName 
  will just point to the default Apache page on the Linux machine and 
not to the one at my virtual domain on that machine, which I would 
normally reach with "www.domain.com" in a browser.

Any hints as to how to solve this ?


Merry Christmas and a Happy New Year !

/Jesper



More information about the En-Nut-Discussion mailing list