1. One development host with two host names, devhost and prodhost each for development and production (configure dns accordingly or client's host file). Host name can be any valid hostnames including development.com, intranet.cit.go.ke, amongh others
2. One instance of Tomcat running,
so $CATALINA_HOME refers to wherever it's installed, perhaps /opt/tomcat.
3. Unix-style path separators and commands; if you're on Windows modify accordingly.
A. Configure Engine
File:server.xml at $CATALINA_HOME/conf
At the simplest, edit the Engine portion of your server.xml file to look like this:
B. Configure Webapps Directories
Create directories for each of the virtual hosts:
mkdir $CATALINA_HOME/devapps
mkdir $CATALINA_HOME/prodapps
Ah ha
I also normaly copy the host-manager/ and manager/ directories to corresponding webapps folder for each virtual host.
I dont know why but i just find myself doing it everytime i create virtualhosts (it may have something to do with manager.xml file in host-manager folder)
No comments:
Post a Comment
Feel free to leave a comment