It's a problem of the basetag. It always gives back the path on the
server. Maybe we should extend it with a handfull attributes:

        <db:base port="8080" onlyContext="true" />
        
Port will be used instead of server port.
If onlyContext is true, request.getContextPath() will be rendered
instead of request.getRequestURI()

Regards,
Henner. 


> -----Urspr�ngliche Nachricht-----
> Von: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]] Im 
> Auftrag von Eddie Post
> Gesendet: Mittwoch, 20. November 2002 11:19
> An: [EMAIL PROTECTED]
> Betreff: Re: [dbforms] db:base with proxy ??
> 
> 
> Hi Dirk,
> 
> You are right, I remember now that it should be done this 
> way. However, I don't succeed to get it working ;( What I do: 
> I place the following lines in my apache config which work 
> (seen from the 
> url):
> ---
> ProxyPass /mticket http://localhost:8075/mticket 
> ProxyPassReverse /mticket http://localhost:8075/mticket
> ---
> And in the server.xml of tomcat, just above the context tag 
> of this web site 
> in the host tag I place the following:
> ----
>       <Connector 
> className="org.apache.catalina.connector.http.HttpConnector" 
> port="8075" proxyName="localhost" proxyPort="80"/>
> ----
> 
> But still does the jsp's contain the 8075 as port number... 
> Hmmmmm. I played around for some time and also removed the 
> proxyName and put the 
> connector tag just above the Host tag in the Engine tag... 
> but without any 
> luck.... ;(
> 
> Can you what I am doing wrong or how can I solve this ?
> >From: Dirk Kraemer <[EMAIL PROTECTED]>
> >To: Eddie Post <[EMAIL PROTECTED]>,   dbforms-interest 
> mailing list 
> ><[EMAIL PROTECTED]>
> >Subject: Re: [dbforms] db:base with proxy ??
> >Date: Tue, 19 Nov 2002 20:23:13 +0100
> >
> >Hi Eddie,
> >
> >That would be more or less the same with any other application. Best 
> >would be to tell the web container that it is running behind 
> a proxy. 
> >It then can give that information to the embedded web applications.
> >
> >How to use tomcat behind a apache proxy is documented at
> >
> >     http://jakarta.apache.org/tomcat/tomcat-4.1-doc/proxy-howto.html
> >
> >I would check Orion documentation if it is also possible to 
> configure 
> >proxy usage in a similar way like it is possible using tomcat.
> >
> >Good luck
> >
> >Dirk
> >
> >
> >Eddie Post wrote:
> > >
> > > Hellu,
> > >
> > > How can I use the db:base tag with a proxy ?
> > > That is, I have Apache under port X and Orion under port Y. I use 
> > > dbforms in an Orion application. Apache will forward 
> every request 
> > > /bla to port Y. The problem is that the page that is returned 
> > > contains port Y in the bas path in the HTML page. So db:base uses 
> > > port Y instead of port X like it should do.
> > >
> > > How can I solve this ?
> > >
> > > Please some advice ?
> > >
> > > Eddie
> > >
> > > _________________________________________________________________
> > > Help STOP SPAM with the new MSN 8 and get 2 months FREE* 
> > > http://join.msn.com/?page=features/junkmail
> > >
> > > -------------------------------------------------------
> > > This sf.net email is sponsored by: To learn the basics of 
> securing 
> > > your web site with SSL, click here to get a FREE TRIAL of 
> a Thawte 
> > > Server Certificate: http://www.gothawte.com/rd524.html
> > > _______________________________________________
> > > DbForms Mailing List
> > >
> > > http://www.wap-force.net/dbforms
> >
> >
> >-------------------------------------------------------
> >This sf.net email is sponsored by: To learn the basics of 
> securing your 
> >web site with SSL, click here to get a FREE TRIAL of a Thawte Server 
> >Certificate: http://www.gothawte.com/rd524.html
> >_______________________________________________
> >DbForms Mailing List
> >
> >http://www.wap-force.net/dbform
> 
> _________________________________________________________________
> The new MSN 8: smart spam protection and 2 months FREE*  
> http://join.msn.com/?page=features/junkmail
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by: To learn the basics of securing 
> your web site with SSL, click here to get a FREE TRIAL of a Thawte 
> Server Certificate: http://www.gothawte.com/rd524.html
> _______________________________________________
> DbForms Mailing List
> 
http://www.wap-force.net/dbforms



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
DbForms Mailing List

http://www.wap-force.net/dbforms

Reply via email to