Forum LAMS for Tech-Heads - General Forum: Re: Different domains pointing to the same LAMS installation


 
Search: 

2: Re: Different domains pointing to the same LAMS installation
In response to 1 07/13/10 06:14 AM
[ Reply | Forward ]
Hi Jose,

Unfortunately, you can't.

The Server URL set in the "Edit configuration settings" option in the Sysadmin menu restricts this to only one domain.

You could change this in the code though, but the main issue is the Flash interface as it requires you to specify a domain from where you retrieve data. So I'm almost certain that you can't do this though. Sorry...

Thanks,

Ernie

Posted by Ernie Ghiglione

3: Re: Re: Different domains pointing to the same LAMS installation
In response to 2 07/13/10 06:50 AM
[ Reply | Forward ]
Ernie, thanks for your fast reply.

Do you know if it would be possible to make a workaround through Apache's mod_rewrite or the problem with flash will remain even then?

Thanks again.

Cheers,
Jose

Posted by Jose C. Andreu

4: Re: Re: Re: Different domains pointing to the same LAMS installation
In response to 3 07/13/10 07:06 AM
[ Reply | Forward ]
If you use mod_rewrite, I'm pretty sure you will be able to get what you want. Probably a combination of mod_rewrite and mod_proxy/mod_jk would be best... but if I recall correctly, mod_rewrite should do.

Thanks,

Ernie

Posted by Ernie Ghiglione

5: Re: Re: Re: Re: Different domains pointing to the same LAMS installation
In response to 4 07/13/10 11:12 AM
[ Reply | Forward ]
Well, I tried to do the workaround through mod_proxy. Everything seems to work, except flash :(

LAMS has to be running in both domains in less than 24h so I'm going to install another LAMS in the same machine. I suppose that there is no problem in doing such thing.

Thanks,
Jose

Posted by Jose C. Andreu

6: Re: Re: Re: Re: Re: Different domains pointing to the same LAMS installation
In response to 5 07/13/10 09:19 PM
[ Reply | Forward ]
Yes, you can run two instances of LAMS in the server and same JBoss...

You have three options:

Change the ports for each instance (if your server has a single IP)

http://is.gd/dr9eC (Spanish)
http://is.gd/dr9gH (English)

If you want to use apache and mod_jk, then this is the other option:

http://is.gd/dr9i7

Or, if you have two IPs, then you won't need to change the ports at all. Just run each instance on a different IP. and start it like:

./run.sh -b your.ip.goes.here -c instance_name

Thanks,

Ernie

Posted by Ernie Ghiglione

Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum