virtual hosts = separate railo instances?

44 views
Skip to first unread message

kittycatonline

unread,
Aug 22, 2009, 1:39:47 PM8/22/09
to Railo
My environment: Ubuntu 8.x server, Apache2, Railo 3.

In a separate post, I asked about getting virtual hosts (xyz.com,
abc.com both on the same IP addr) working, and with the group's help,
did get it going. Thanks, all. Had to add the hosts to /opt/railo/conf/
resin.conf.

Thing is, I'm noticing that each virtual host now acts as if it's got
it's own instance of Railo. I go to the Railo Web Administrator page
for each virtual host, and they're all acting like they are
independent. Had to configure each of them like a new instance of
Railo.

I did a "ps aux|grep resin" to see if multiple instances of Railo were
firing; and it looks like they are. My server doesn't have a lot of
RAM on it, so I'm concerned it might max out with more than a couple
virtual hosts.

So, with that being said: Is there a way to configure virtual hosts so
they run off of a common instance of Railo?

Dave

unread,
Aug 22, 2009, 1:55:32 PM8/22/09
to ra...@googlegroups.com
nope.. each site is it's own instance and it is a beautiful thing.

Paul Kukiel

unread,
Aug 22, 2009, 2:00:46 PM8/22/09
to ra...@googlegroups.com
I'm pretty sure only 1 instance of resing is running. I have the same
setup but on debian VPS with 7 sites running under railo with only 512
ram and its quite happy.

Paul
--
Paul Kukiel

Don Bellamy

unread,
Aug 22, 2009, 2:11:50 PM8/22/09
to ra...@googlegroups.com
Yes you can, not sure of your setup, but Sean Corfield has put
together a nice tutorial on using a single install of Railo with
Tomcat.

http://corfield.org/blog/index.cfm/do/blog.entry/entry/Railo_on_Tomcat__multiweb

Don

Peter Boughton

unread,
Aug 22, 2009, 2:28:36 PM8/22/09
to ra...@googlegroups.com
We need to be careful with terminology here - specifically "instance"
vs "context".

A single Server Instance can run multiple Web Contexts.

(for simplicitly, I'll use "Resin" below, but this applies to Tomcat/etc also)

Generally, one Resin instance has one Railo instance, with one Server Admin.

This single instance of Resin+Railo supports multiple (Virtual) Hosts,
each with a separate and distinct Web Context.

Each distinct Context has its own Web Admin, with distinct settings.

This is a *very* useful way of setting it up, both for security and
for organisational purposes.


Options for sharing settings between multiple Hosts:
- Point both Hosts at the same Context (i.e. using aliasing).
- Declare mappings/etc at the Server-level, so they are shared for all Contexts.
- Setup the Remote Clients synchronisation feature for each Context.

Dave

unread,
Aug 22, 2009, 3:06:33 PM8/22/09
to ra...@googlegroups.com
That was how I had originally did it and yes it "does" ... you 1
install of railo but it also auto-spawns the web-inf files and folders
into each site which is what dropping a war file in each site does.
That way is harder to update as well and in the end you are still
running each site as it's own instance.

Paul Kukiel

unread,
Aug 22, 2009, 3:14:57 PM8/22/09
to ra...@googlegroups.com
No its not they are all using the same server so wjen you update one
server they are all updated.

Paul

On 8/22/09, Dave <cfl...@jamwerx.com> wrote:
>
--
Paul Kukiel

Dave

unread,
Aug 22, 2009, 3:22:24 PM8/22/09
to ra...@googlegroups.com
Yes I know that's how it updates, I didn't say each one has to be done
separately I just said it was harder to update since I believe you
can't use the auto-updater instead you got to install the jars yourself.
Reply all
Reply to author
Forward
0 new messages