AOL Webserver - Re: AOLServer 4.5.0 redirecting with 302 for requests where there is no trailing slash

This is Interesting: Free IT Magazines  
Home > Archive > AOL Webserver > January 2007 > Re: AOLServer 4.5.0 redirecting with 302 for requests where there is no trailing slash





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: AOLServer 4.5.0 redirecting with 302 for requests where there is no trailing slash
Bas Scheffers

2007-01-20, 7:11 am

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
> <listserv@listserv.aol.com> with the
> body of "SIGNOFF AOLSERVER" in the email message. You can leave the
> Subject: field of your email blank.



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com