On 2004.05.05, Ross Simpson <[EMAIL PROTECTED]> wrote:
> I'm not sure what ns_conn location looks at, but it's not the hostname
> from the request.

It looks at what was set for "ns_param location" in the nssock section
of the conn that it's processing the request for.

> 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? :)

Right.  If you want to use something like [ns_conn location] you'll need
to set up virtual servers in your config .tcl file for each hostname
that'll point to your server.  Maybe not worth the effort ...

> 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.

Essentially, it uses [ns_info server] which returns whatever server
instance is processing the request.

-- Dossy

--
Dossy Shiobara                       mail: [EMAIL PROTECTED]
Panoptic Computer Network             web: http://www.panoptic.com/
  "He realized the fastest way to change is to laugh at your own
    folly -- then you can let go and quickly move on." (p. 70)


--
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.

Reply via email to