Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with multiple sites in server.xml file, almost there

Status
Not open for further replies.

chazman113

Programmer
Jan 31, 2008
2
US
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+
 
did you find your answer? if not, I'll give you some details?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top