Also, Squid *should* be able to detect and re-write this as well. (well, I think it should; it might, I don't know) Apache's mod_proxy certainly does this.

This is useful as you can also re-write directories, ie: a request to "/" on the proxy goes to "/site/" on nsd; when nsd redirects "/site/ doc" to "http://server:8000/site/doc/";, the proxy should re-write this to "http:/realhost/doc/".

Cheers,
Bas.


On 19 Jan 2007, at 23:37, Tom Jackson wrote:

Nick,

You have to setup the location parameter.

Here are some notes from <http://rmadilo.com/files/tclvhr/tclvhr.txt>:

#
# Notes:
# You must set the location parameter correctly in your proxied hosts'
# startup file nsd.tcl.
#
# If you want your web domain name to be www.example.com
# set up the following in you nsd.tcl file:
# ns_section "ns/server/${servername}/module/nssock"
# ns_param port 8000 ;# Actual private port # ns_param hostname www.example.com ;# Internet Hostname # ns_param address 192.168.1.2 ;# Actual private ip # ns_param location http://www.example.com ;# Protocol://Hostname

# The location parameter is essential for automatic redirects and for proper
# use of [ns_conn location], otherwise redirect would go to
# http://www.example.com:8000
#


tom jackson


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


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