cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tobia Conforto <tobia.confo...@linux.it>
Subject Re: global:home param local and remote
Date Mon, 08 Oct 2007 07:15:47 GMT
Lincoln Mitchell wrote:
> I am building many website and placing them in folders in webbapp
>
> 1st I to this locally:
> http://localhost:8888/Asite.com.au/
> I then move it to the webapp on the server to go live:
> http://www.Asite.com.au/
> The problem is that when I move to webapp on the server the URLs become
> www.Asite.com.au/Asite.com.au/...
>
> So how do you get around this?

I like to use custom domain names.

If you can configure a local nameserver, setup a .local (or other) fake
domain with a * (wildcard) record pointing to your development server.
Then you can call www.Asite.com.au.local and handle the request in
Cocoon.  You just have to put a bit of logic in an action or somewhere,
to strip the .local part from request.getServerName()

If you cannot set up a local nameserver, you will have to put each fake
domain name in your hosts file*, as the hosts file does not support
wildcards, as far as I know.


Tobia

*: /etc/hosts or c:\windows\system32\drivers\etc\hosts

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


Mime
View raw message