Re: AOLServer 4.5.0 redirecting with 302 for requests where there is no trailing slash
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > AOL Webserver > Re: AOLServer 4.5.0 redirecting with 302 for requests where there is no trailing slash




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

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


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-20-07 12:11 PM

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.







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:52 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register