You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk> on 2008/06/26 08:29:29 UTC

Having a base url parameter for the whole application?

Hi

I've tried like a crazy mad man to get apache to set a special header 
depending on which domain my requests comes from, I just cant get it to 
work(sets the same header no matter which domain). So I thought that 
wicket could come to the rescue again..

Instead of setting a header I could get apache to forward to special 
urls depending on domain, like this: 
http://domain/applicationcontext/mydomain , that way I can get wicket to 
pickup which domain the request comes from... But how can it be done? 
Because the parameter will be there in every request...

-- 
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Having a base url parameter for the whole application?

Posted by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>.
Yup, it's being rewritten to the ip of the server and setting preserve 
hosts on brings other issues.

However I found out that if I place one vhost before the other and 
omitting set header on the first one. It'll actually work, and since I 
only have to sites its okay.. And working sort of as wanted..

Gabriel Bucher wrote:
> have you tried to use the request header attribute 'Host', see http 
> 1.1 specification.
>
> gab
>
> Nino Saturnino Martinez Vazquez Wael wrote:
>> Hi
>>
>> I've tried like a crazy mad man to get apache to set a special header 
>> depending on which domain my requests comes from, I just cant get it 
>> to work(sets the same header no matter which domain). So I thought 
>> that wicket could come to the rescue again..
>>
>> Instead of setting a header I could get apache to forward to special 
>> urls depending on domain, like this: 
>> http://domain/applicationcontext/mydomain , that way I can get wicket 
>> to pickup which domain the request comes from... But how can it be 
>> done? Because the parameter will be there in every request...
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>

-- 
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Having a base url parameter for the whole application?

Posted by Gabriel Bucher <ga...@gmail.com>.
have you tried to use the request header attribute 'Host', see http 1.1 
specification.

gab

Nino Saturnino Martinez Vazquez Wael wrote:
> Hi
> 
> I've tried like a crazy mad man to get apache to set a special header 
> depending on which domain my requests comes from, I just cant get it to 
> work(sets the same header no matter which domain). So I thought that 
> wicket could come to the rescue again..
> 
> Instead of setting a header I could get apache to forward to special 
> urls depending on domain, like this: 
> http://domain/applicationcontext/mydomain , that way I can get wicket to 
> pickup which domain the request comes from... But how can it be done? 
> Because the parameter will be there in every request...
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Having a base url parameter for the whole application?

Posted by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>.
Thanks, could have been though there were something there already.. I'll 
roll my own then:)

Igor Vaynberg wrote:
> write your own webrequestcodingstrategy?
>
> -igor
>
> On Wed, Jun 25, 2008 at 11:29 PM, Nino Saturnino Martinez Vazquez Wael
> <ni...@jayway.dk> wrote:
>   
>> Hi
>>
>> I've tried like a crazy mad man to get apache to set a special header
>> depending on which domain my requests comes from, I just cant get it to
>> work(sets the same header no matter which domain). So I thought that wicket
>> could come to the rescue again..
>>
>> Instead of setting a header I could get apache to forward to special urls
>> depending on domain, like this: http://domain/applicationcontext/mydomain ,
>> that way I can get wicket to pickup which domain the request comes from...
>> But how can it be done? Because the parameter will be there in every
>> request...
>>
>> --
>> -Wicket for love
>>
>> Nino Martinez Wael
>> Java Specialist @ Jayway DK
>> http://www.jayway.dk
>> +45 2936 7684
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>     
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>   

-- 
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Having a base url parameter for the whole application?

Posted by Igor Vaynberg <ig...@gmail.com>.
write your own webrequestcodingstrategy?

-igor

On Wed, Jun 25, 2008 at 11:29 PM, Nino Saturnino Martinez Vazquez Wael
<ni...@jayway.dk> wrote:
> Hi
>
> I've tried like a crazy mad man to get apache to set a special header
> depending on which domain my requests comes from, I just cant get it to
> work(sets the same header no matter which domain). So I thought that wicket
> could come to the rescue again..
>
> Instead of setting a header I could get apache to forward to special urls
> depending on domain, like this: http://domain/applicationcontext/mydomain ,
> that way I can get wicket to pickup which domain the request comes from...
> But how can it be done? Because the parameter will be there in every
> request...
>
> --
> -Wicket for love
>
> Nino Martinez Wael
> Java Specialist @ Jayway DK
> http://www.jayway.dk
> +45 2936 7684
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org