Take a look at the Ns_ParseRequest() function in nsd/request.c. The answers to all of your questions are in there. ;-)
- n Ross Simpson wrote on 5/5/2004, 11:57 AM: > I'm not sure what ns_conn location looks at, but it's not the hostname > from the request. > > Example: > > I have a server setup on a machine called test. When I make a request > to 'http://test:8000', ns_conn location returns 'http://test:8000'. > > If I add an entry to the hosts file on my workstation that has the ip of > test, but a different name (say 'test2'), and make a request to > 'http://test2:8000', ns_conn location still returns 'http://test:8000'. > > The Host header from ns_conn headers is correct, however: 'test2:8000'. > > I will probably just use the value from the headers. As Bas pointed > out, that's what virtual servers do, so why shouldn't I use it? :) > > It does seem strange that ns_conn location doesn't use the requested > hostname, but then I'm not sure where it gets the hostname from. > > Thanks for the help. > > Ross -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.