Hi,

The easiest way it to introduce a proxy in front of Tomcat, e.g. Nginx or
Apache HTTPD.
See https://www.nginx.com/resources/admin-guide/reverse-proxy/ and/or
https://www.digitalocean.com/community/tutorials/how-to-use-apache-http-server-as-reverse-proxy-using-mod_proxy-extension

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Fri, Oct 9, 2015 at 5:03 AM, trlt <trl...@gmail.com> wrote:

> I have developed a Wicket application (MyApplication.war), to be deployed
> on
> Apache + Tomcat.
> It can be invoked using: http://hostname//MyApplication
>
> The application has 2 bookmarkable pages:
> http://hostname/MyApplication/page1
> http://hostname/MyApplication/page2
>
> I'd like to make page2 also available using a different hostname:
> http://hostname2/department/page2
>
> Using one single war file, how can I use the same source code in Wicket to
> serve the following 2 different URLs:
>
> http://hostname/MyApplication/page2
> http://hostname2/department/page2
>
> Hoping someone in the user group can offer some help or suggestions.
> Thanks!
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/2-different-context-paths-using-one-single-war-file-tp4672189.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to