Actually, "If" you sub domain your apps, then they can all be ROOT.war e.g. app1.myhost.com vs myhost.com/app1 - look at doing virtual hosts in tomcat if interested. Russ
> Date: Fri, 17 Jul 2009 13:29:35 +0800 > Subject: Re: Not working AjaxFormSubmitBehavior in Tomcat behind HTTP Server > From: anton.veretenni...@gmail.com > To: users@wicket.apache.org > > Igor, I have several applications working on one server. They can't > all be ROOT.war. > > -- Tony > > On Fri, Jul 17, 2009 at 11:40 AM, Igor Vaynberg<igor.vaynb...@gmail.com> > wrote: > > rename it to ROOT.war > > > > -igor > > > > On Thu, Jul 16, 2009 at 7:00 PM, Anton Veretennikov < > > anton.veretenni...@gmail.com> wrote: > > > >> Thank you, Igor, for your suggestion. > >> > >> I need full hiding of app name. Renaming still creates additional path > >> in url like http://sitename.com/AppName/ > >> > >> May be there exists other way or my URL Rewriting is not correct: > >> > >> <VirtualHost *:80> > >> ServerName www.sitename.com > >> ServerAlias sitename.com > >> ProxyPass / ajp://127.0.0.1:8009/AppName/ > >> ProxyPassReverse / ajp://127.0.0.1:8009/AppName/ > >> ProxyPassReverseCookieDomain localhost sitename.com > >> ProxyPassReverseCookiePath /AppName / > >> RewriteEngine on > >> RewriteRule ^/AppName/(.*)$ /$1 [R] > >> </VirtualHost> > >> > >> -- Tony > >> > >> On Fri, Jul 17, 2009 at 12:15 AM, Igor Vaynberg<igor.vaynb...@gmail.com> > >> wrote: > >> > just rename your war to something else before deploying it. > >> > > >> > -igor > >> > > >> > On Thu, Jul 16, 2009 at 8:25 AM, Anton > >> > Veretennikov<anton.veretenni...@gmail.com> wrote: > >> >> Hello, wicket users and developers, > >> >> > >> >> This is a problem I can't work out myself, I need your help. > >> >> > >> >> In a local environment (direct calls to Tomcat) AjaxFormSubmitBehavior > >> >> works as expected. > >> >> But in production I try to hide application name (let's say, > >> >> AppNamePay-1.0-SNAPSHOT) from URL using RewriteRule. > >> >> > >> >> Logs show that somehow application name bobs up when I create a link > >> >> with AjaxFormSubmitBehavior. > >> >> This can be seen from httpd logs (302 status): > >> >> > >> >> xx.22.151.6 - - [16/Jul/2009:14:14:30 +0000] "GET > >> >> /AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:5::: HTTP/1.1" 302 312 > >> >> "http://sitename.com/?wicket:interface=:0:4:::" "Mozilla/5.0 (Windows; > >> >> U; Windows NT 5.1; ru; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6" > >> >> > >> >> And from catched calls using HttpFox: > >> >> > >> >> GET 302 Redirect to: > >> >> http://sitename.com/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:3::: > >> http://sitename.com > >> >> > >> /?wicket:interface=:0:outterDiv:leftPanel:content:updatableDiv:hidableDiv:electronicUpdatable:list:0:item:border:switch:buttons2:acceptSum:2:ILinkListener:: > >> >> (Status-Line) HTTP/1.1 302 Moved Temporarily > >> >> GET 302 Redirect to: > >> >> http://sitename.com/?wicket:interface=:0:3::: > >> http://sitename.com/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:3::: > >> >> (Status-Line) HTTP/1.1 302 Found > >> >> > >> >> How it could be that wicket knows about AppNamePay-1.0-SNAPSHOT? > >> >> Other Ajax stuff seems working without problem. > >> >> > >> >> Wicket is 1.4-rc7 > >> >> > >> >> --Tony > >> >> > >> >> --------------------------------------------------------------------- > >> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >> >> For additional commands, e-mail: users-h...@wicket.apache.org > >> >> > >> >> > >> > > >> > --------------------------------------------------------------------- > >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >> > For additional commands, e-mail: users-h...@wicket.apache.org > >> > > >> > > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >> For additional commands, e-mail: users-h...@wicket.apache.org > >> > >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > _________________________________________________________________ Windows Live™ SkyDrive™: Get 25 GB of free online storage. http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_SD_25GB_062009