Hi I am not a fan of reverse proxying. I would not vote for it if runs.
If your servlet container supports it, you may try the AJP protocol. It works on tomcat at least. AJP is better than just using a http reverse proxy because: a) you get the right client IP address then asking the servlet API, b) isSecure() and getScheme() will work as expected, and c) the container becomes aware of the changed context root. On Fri, Feb 27, 2009 at 6:14 AM, <[email protected]> wrote: > Hi all, > > I have problem when Wicket 1.3.5 application is installed behind proxy server. > > Application it showing Index page in url https://www.mycompany.com/pls/myapp/ > When clicking link (pointing into same Index page), browser is going to url > http://server:7777/pls/myapp/ > > Any ideas about to solve this? Details listed below. > > Best Regards > Harri > > ======Index.html===================================================== > <html xmlns:wicket="http://wicket.apache.org/"> > <body> > <a wicket:id = "linkIndex">Index</a> > </body> > </html> > ======Index.java===================================================== > public class Index extends WebPage { > public Index() { > Link linkToAnchor = new Link("linkIndex") { > public void onClick() { > setResponsePage(Index.class); > } > }; > add(linkToAnchor); > } > } > ======MyApplication.java============================================= > public class MyApplication extends WebApplication { > > �...@override > public Class getHomePage() { > return Index.class; > } > } > ======web.xml======================================================== > <?xml version = '1.0' encoding = 'windows-1252'?> > <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4" > xmlns="http://java.sun.com/xml/ns/j2ee"> > <description>Empty web.xml file for Web Application</description> > <filter> > <filter-name>WicketApplication</filter-name> > > <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class> > <init-param> > <param-name>applicationClassName</param-name> > <param-value>com.mycompany.app.MyApplication</param-value> > </init-param> > </filter> > <filter-mapping> > <filter-name>WicketApplication</filter-name> > <url-pattern>/*</url-pattern> > </filter-mapping> > <session-config> > <session-timeout>35</session-timeout> > </session-config> > <mime-mapping> > <extension>html</extension> > <mime-type>text/html</mime-type> > </mime-mapping> > <mime-mapping> > <extension>txt</extension> > <mime-type>text/plain</mime-type> > </mime-mapping> > </web-app> > =========================================================== > My infra stack is: > > Alteon SSL Aaccelerator url: > https://www.mycompany.com/pls/myapp/ > > Apache Proxy url: > http://webserver:80/pls/myapp/ > Httpd.conf: > ProxyPass /pls http://server:7777/pls/myapp/ > ProxyPassReverse /pls http://server:7777/pls/myapp/ > > Oracle Application Server url: > http://server:7777/pls/myapp/ > > > > -- Marcelo Morales --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
