Hi Nino, thanks for that. I wasn't aware that I can get apache to append a cookie. I've done things in the past using mod-rewrite like: Redirect <subdomain>.example.org/<path> to www.example.org/<subdomain>/<path>
Which directive are you using? On Mon, Feb 23, 2009 at 5:17 PM, Nino Martinez <nino.martinez.w...@gmail.com> wrote: > Hi Wayne > > Thats exactly what I've done with my traningslog.dk and exerciselog.eu , > both are pointing at the same app...I just used apache http to append a > special cookie containing the domain.. There are several ways of doing this > with apache http.. I did this since I am running several apps on the same > tomcat so I need some logic in front of tomcat anyhow.. > > regards Nino > > Wayne Pope wrote: >> >> Hi Martin, >> >> basically I need subdomains to map to a context within the application. >> >> For example if you have a application that has several customers, I >> want to have a separate subdomain for each customer: >> >> william.myapp.com >> jo.myapp.com >> sarah.myapp.com >> >> I'd like 'william' to always see his URLS like: >> http://william.myapp.com/?wicket:interface=:4:::: >> >> >> However in the application I need to figure out that I'm in the >> 'william' context, so i can serve williams content only. >> >> >> >> >> On Mon, Feb 23, 2009 at 5:00 PM, Martin Makundi >> <martin.maku...@koodaripalvelut.com> wrote: >> >>> >>> I think you can see the request ulr root by calling >>> ((WebRequest)RequestCycle.get().getRequest()).getRequestURL() >>> >>> Is that what you want? >>> >>> ** >>> Martin >>> >>> 2009/2/23 Wayne Pope <waynemailingli...@googlemail.com>: >>> >>>> >>>> Hi, >>>> >>>> I need to be able to map urls like: >>>> >>>> foo.myapp.com >>>> foo2.myapp.com >>>> woo.myapp.com >>>> etc.. >>>> >>>> and be able to have a parameter in my session (say a String) set to >>>> either foo, foo2, woo, etc >>>> >>>> These subdomains are database driven and therefore I don't want to add >>>> any subdomains hardcoded to web.xml or apache . >>>> I was thinking about doing a mod rewrite in apache and either >>>> appending an extra parameter or mapping to something like: >>>> >>>> /webappurl/foo >>>> /webappurl/foo2 >>>> /webappurl/woo >>>> >>>> and then (by majic!) be able to pick this up in the wicket session. >>>> >>>> Anyone got any idea's on how I could go about this? >>>> >>>> I did think about adding another servlet filter and setting some >>>> threadlocal variable, but this doesn't feel right. >>>> >>>> many thanks >>>> >>>> --------------------------------------------------------------------- >>>> 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 > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org