> It's a problem of the basetag.
No, I think the base tag the base tag is fine.
> It always gives back the path on the
> server.
No, it gives back the server name and port that the
web container tells it is running at. The web container must know
about the proxy and then tell the application the
server name and port of the proxy, not of the web container.
> Maybe we should extend it with a handfull attributes
hehe, a handful of attributes a day would make 1825 attributes
a year...
Two more serious reasons:
1) Deployment information should not be burned into the JSPs.
2) The application can be accessible through different ports
on different servers, Each time the the result of the base tag
must be different, one port there would not help.
3) It simply works fine as it is.
I have a tomcat (servera) behind a proxy (serverb) and a
<db:base/>
on A JSP. If I access the page directly via a http connector, I get
<base href="http://servera:8090/...">
If I access the same page using the apache proxy, I get
<base href="http://serverb/...">
So the current concept seems to be ok and working, it must be something else,
a bug within tomcat or apache, config problem, don't know.
But the base tag is not responsible.
Regards
Dirk
>
> <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
-------------------------------------------------------
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