Thanks a lot.

Removing the vhost and loading the nssock in the server (the only one I have
because no vhost anymore) solved the problem.

It is working great !

So, maybe there is a bug on nssock (or maybe even when the nssock module is
global on vhosts config, we have to define a nssock config for each server
to add the ns_param location entry, I didn't test this case.).

If I have time someday, I will investigate and let you know.

Thanks.

Regards / Cordialement

====================
Jean-Fabrice Rabaute
CORE SERVICES :: Software/Web development & Consulting services

http://www.core-services.fr - {Enjoy the future today}
http://www.debugbar.com : The most advanced WEB development tool for
Internet Explorer


> -----Message d'origine-----
> De : AOLserver Discussion [mailto:[EMAIL PROTECTED] la part
> de Bas Scheffers
> Envoyé : vendredi 23 septembre 2005 11:47
> À : [email protected]
> Objet : Re: [AOLSERVER] ns_param Location AS4
>
>
> Hmmm, I haven't dug deep enough to find out where exactly it gets the
> location from. (well, it gets it from the Conn, but I don't know where
> that gets set from) In reality, you never need the full URL for these
> redirects, only relitive ones. And AOLserver only adds the hostname if the
> target starts with "/".
>
> So as a quick fix if this really is a bug that no amount of configuration
> is going to solve, you can go into conn.c and in the
> "Ns_ConnReturnRedirect" function comment out the "/" check and adding of
> the location.
>
> Cheers,
> Bas.
>
> Jean-Fabrice RABAUTE said:
> > Thanks for the tips.
> >
> > Unfortunately it didn't change anything.
> >
> > The host sent by the client is Host: myhost:2000
> >
> > but the the redirect says : http://myhost/ :-(
> >
> > I did a test page :
> >
> > ns_returnredirect "/index.tcl"
> >
> >
> > and this command removes the ":2000" ! bad :-(
> >
> > Is there a "ns_param location" available when nssock is loaded only once
> > (and not per vhost), and where can I put it ?
> >
> > It the vhost is the problem, I can remove it...
> >
> >>
> >> Hmmm, I never had that problem, but then again I also don't use the
> >> "Location" parameter.
> >>
> >> My guess is that if you remove the Location param it simple takes
> >> whatever
> >> the client sends in the Host: header.
> >>
> >> Also, remove the ":2000" from the hostname, it is not needed and may
> >> give
> >> you grief as well.
> >>
> >> Hope that helps!
> >>
> >> Jean-Fabrice RABAUTE said:
> >> > Hi all,
> >> >
> >> > I need to change a server listening on port 80 to a new port 2000.
> >> >
> >> > The new url will be :
> >> >
> >> > http://myhost:2000
> >> >
> >> > The problem is that the "ns_returnredirect" directive suppress
> >> the ":2000"
> >> > from the url, so it is always redirected to http://myhost !
> >> >
> >> > I am using AS4.0.10 on Fedora Core 4.
> >> >
> >> > I use virtual hosting, and have the following config :
> >> >
> >> > -------------------------------------------------
> >> > ns_section ns/modules
> >> > ns_param nssock nssock.so
> >> >
> >> > ns_section ns/module/nssock
> >> > ns_param port           2000
> >> > ns_param hostname       "myhost:2000"
> >> > ns_param Location       "http://myhost:2000";
> >> > ns_param address        192.168.0.1
> >> > ns_param defaultserver  myhost
> >> >
> >> > ns_section ns/module/nssock/servers
> >> > ns_param myhost myhost
> >> > ns_param myhost2 myhost2
> >> > ns_param myhost 192.168.0.1
> >> >
> >> > -------------------------------------------------
> >> >
> >> > What's wrong and how can I correct the problem.
> >> >
> >> >
> >> > Regards / Cordialement
> >> >
> >> > ====================
> >> > Jean-Fabrice Rabaute
> >> > CORE SERVICES :: Software/Web development & Consulting services
> >> >
> >> > http://www.core-services.fr - {Enjoy the future today}
> >> > http://www.debugbar.com : The most advanced WEB development tool for
> >> > Internet Explorer
> >> >
> >> > --
> >> > No virus found in this outgoing message.
> >> > Checked by AVG Anti-Virus.
> >> > Version: 7.0.344 / Virus Database: 267.11.3/107 - Release Date:
> >> 20/09/2005
> >> >
> >> >
> >> > --
> >> > 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.
> >>
> >> --
> >> No virus found in this incoming message.
> >> Checked by AVG Anti-Virus.
> >> Version: 7.0.344 / Virus Database: 267.11.3/107 - Release Date:
> >> 20/09/2005
> >>
> > --
> > No virus found in this outgoing message.
> > Checked by AVG Anti-Virus.
> > Version: 7.0.344 / Virus Database: 267.11.3/107 - Release Date:
> 20/09/2005
> >
> >
> > --
> > 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.
>
> --
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.344 / Virus Database: 267.11.3/107 - Release Date: 20/09/2005
>
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.3/107 - Release Date: 20/09/2005


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