chazman113
Programmer
I've deployed a WAR for "Railo" (a CFML processor) and I have a site working just fine through apache (with mod_jk) to point to my domain. My problem is I want to be able to host multiple sites on my server using the Railo application and have the httpdocs in a structure like /home/ as of now I have the site in tomcatdir/railo/. I'll include excerpts from my httpd.conf and server.xml below, how do I run as many as I want? FOR BONUS POINTS: run one on ssl
HTTPD.CONF:
NameVirtualHost *:80
+VirtualHost *:80+
DocumentRoot /usr/java/tomcat-5.5/webapps/railo-2.0.0.026
ServerName aquariumdb.com
ServerAlias DirectoryIndex index.cfm
JkMount /*.cfm default
JkMount /*.cfc default
+/VirtualHost+
+VirtualHost *:80+
ServerName blog.aquariumdb.com
DirectoryIndex index.php
DocumentRoot /home/ ScriptAlias /cgi-bin/ /home/ +Location /cgi-bin+
Options +ExecCGI
+/Location+
ErrorLog /home/ CustomLog /home/ combined
+/VirtualHost+
SERVER.XML:
+Host name="aquariumdb.com" appBase="/usr/java/tomcat-5.5/webapps/railo-2.0.0.026"+
+Context path="" docBase="."/+
+Alias++/Host+
HTTPD.CONF:
NameVirtualHost *:80
+VirtualHost *:80+
DocumentRoot /usr/java/tomcat-5.5/webapps/railo-2.0.0.026
ServerName aquariumdb.com
ServerAlias DirectoryIndex index.cfm
JkMount /*.cfm default
JkMount /*.cfc default
+/VirtualHost+
+VirtualHost *:80+
ServerName blog.aquariumdb.com
DirectoryIndex index.php
DocumentRoot /home/ ScriptAlias /cgi-bin/ /home/ +Location /cgi-bin+
Options +ExecCGI
+/Location+
ErrorLog /home/ CustomLog /home/ combined
+/VirtualHost+
SERVER.XML:
+Host name="aquariumdb.com" appBase="/usr/java/tomcat-5.5/webapps/railo-2.0.0.026"+
+Context path="" docBase="."/+
+Alias++/Host+