Sunday, 30 September 2012

Enabling Railo on a domain using Tomcat

>> Go to the directory: /opt/railo/tomcat/conf (This is the default install directory     we run on servers for Railo)

>>  Edit the file: server.xml

>>  Go to the line where it has commented code and has: HOST ENTRY TEMPLATE

>>  Enter new lines after the commented code with the following replacing domain.com with your domain and the docBase with the path on your server to your public_html or wwwroot or httpdocs:

<Host name="domain.com" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase="/home/username/domain.com" />
<Alias>www.domain.com</Alias>
</Host>

>> Save the  server.xml file

>>  Now you need to restart Railo

 /etc/init.d/railo_ctl restart

>>  Allow a up to 30 seconds for the service to restart and then try going to your Railo web administrator example below:

http://www.domain.com/railo-context/admin/web.cfm

>> You can access this URL using the default password of railo server admin. You can view this default password by login to 

 http://IP/railo-context/admin/server.cfm  and  go to Password under the section 'Security' .

>> Once you login to the railo web admin page of the domain using this default password, you can reset password there.

No comments:

Post a Comment