Sorry for stepping in here, but this interest me too ;)
do you map these different domains to different databases,
but using only one application deployment?
if so, i would like to know how you did this...
thanks
-
To
In my case no, since the whole idea are to share statistics. Only diff
between the 2 are some forum rights and the small title...
If you want the same application to run with different databases I
suggest you do one of these:
* Custom request cycle (do something with your injection
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
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
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
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
((WebRequest)RequestCycle.get().getRequest()).getRequestURL() should
work for you.
**
Martin
2009/2/23 Wayne Pope waynemailingli...@googlemail.com:
Hi Martin,
basically I need subdomains to map to a context within the application.
For example if you have a application that has several
ok thanks Martin, I'll give it a go
On Mon, Feb 23, 2009 at 5:27 PM, Martin Makundi
martin.maku...@koodaripalvelut.com wrote:
((WebRequest)RequestCycle.get().getRequest()).getRequestURL() should
work for you.
**
Martin
2009/2/23 Wayne Pope waynemailingli...@googlemail.com:
Hi Martin,
I did not do what I said.. :( Apparently I have to seperate virtual
sites for it.. In the exerciselog one I set:
RequestHeader set domain exerciselog.eu
I had to turn of : ProxyPreserveHost Off, cant remember why, but there
was a reason to it...Could be because I share cookies or something