Add Railo support to Virtualmin

i know we've discussed this in a previous message but I can't seem to find that message right now. I wanted to let you know that Railo has updated their installer so it completely installs railo/tomcat and works w/ a one command install. I know you have a "zillion" todo items but i mention this because I think it would be an easy addition to VM.

The installer takes care of everything but you would need to:

  • Set the the following in /etc/httpd/conf.d/proxy_ajp.conf
ProxyPreserveHost On
ProxyPassMatch ^/(.+\.cf[cm])$ ajp://localhost:8009/$1
ProxyPassMatch ^/(.+\.cf[cm])(/.*)$ ajp://localhost:8009/$1?path_info=$2
ProxyPassMatch ^/((flashservices/gateway|messagebroker/|flex2gateway/|openamf/gateway/).*) ajp://localhost:8009/$1
  • set the following in /opt/railo/tomcat/conf/Catalina/$HOST/ROOT.xml
<?xml version='1.0' encoding='utf-8'?>
    <Context displayName="$HOST" docBase="" path=""
      workDir="work/Catalina/$HOST/_">
    </Context>
  • add a "host" entry to /opt/railo/tomcat/conf/server.xml
      <Host name="morgan-company.com" appBase="/home/$HOST/public_html/webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">
            <Context path="" docBase="/home/$HOST/public_html" />
            <Alias>www.$HOST</Alias>
      </Host>

Miscellaneous settings

  • restart railo/tomcat
  • set index.cfm as default page
  • set ownership on /home/$HOST/public_html

  • mkdir -p /home/$HOST/public_html/webapps

  • mkdir -p /opt/railo/tomcat/conf/Catalina/$HOST

What do you think?
-- Craig

Status: 
Active

Comments

Railo support probably isn't likely to appear in Virtualmin any time soon, as it depends on Java .. and we don't currently have any scripts that use Java. Adding another language dependency is a lot of work, especially if packages for it are not available on all our supported operating systems and linux distributions ..

I won't even pretend to understand the "behind the scenes" work it takes to add something like this. Would it be possible to add a Railo service that simply provided a way to edit server.xml (under Tomcat) and restart the service?

Everything else can be easily scripted except the "edit" component, this is functionality you already provide. Perhaps it could be a general conf file editor which would allow us to select the conf file to edit (in this case server.xml). Of course a way to restart the railo server (railo_ctl) would be nice...

Just trying to stay away from the command line as it makes domain management much (much) easier!

In any event - thanks for a great product and excellent support!

-- Craig

You can do a lot of this with the Custom Commands module, at Webmin -> Others. You can create buttons that run whatever commands you want, and buttons for editing files ..

@isdahlc

did you take this anywhere? interested in any level of integration you may have achieved with this.

let me know. thanks

zac

did you take this anywhere? interested in any level of integration you may have achieved with this

We have railo running production virtualmin sites; the only "integration" with virtualmin is some custom commands to start/stop/restart and edit tomcat's server.xml file. Very basic. It would be nicer to have better integration, maybe in the future.

If you have any specific questions just let me know.

-- Craig