Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » How to set up a virtual host website with Tomcat6
How to set up a virtual host website with Tomcat6 [message #549493] Mon, 26 July 2010 16:48 Go to previous message
Marc Chamberlin is currently offline Marc Chamberlin
Messages: 27
Registered: July 2009
Junior Member
Hi - Done a lot of searching for an answer, but no joy! Can anyone
tell me how one sets up a project for a static website that will be
configured for a virtual host? I can't even figure out how to associate
a static website with a Tomcat6 server, let alone figure out how to set
the virtual webapp deployment directory for it!

In the Tomcat directory, one normally has a basic webapp dir with a ROOT
subdir for the main website. ($CATALINA_HOME)->webapps->ROOT but for
virtual hosted domains it will be something like
($CATALINA_HOME)->virtualDomain_webapps->ROOT
So how does one setup this sort of deployment within Eclipse? One
thought I had was to set up a second instance of a Tomcat server, and
give it a new deploy path, but I still do not see how to associate a
static website with it. And I don't want two different webprojects to
collide if both their context roots are set to ROOT

Also, one other question that has been nagging me, and a bit of a
headache... Why does Eclipse set the name of the default deployment
directory to wtpwebapps instead of simply webapps? That raises havoc
with a lot of projects and Tomcat has no idea what this root deployment
directory is... It is a PITA if I forget to reconfigure this and it is
not the normal default webapp directory that comes with a basic Tomcat
installation. (Particularly since many of my web apps use generated
absolute paths in things like servlets and JSP code) Inquiring minds are
curious! Wish I could find some good documentation on the models used
in Eclipse/WTP for project types, servers, deployment etc.... If there
is such, I am willing to read and grok on my own, but what I have found
so far is a far cry from getting me to being able to comprehend most of
the things I am being asked about, or want to configure!

Marc...
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Auto-deploy(?) not working
Next Topic:Feature/Bug JS Code assist
Goto Forum:
  


Current Time: Tue May 21 06:14:00 EDT 2013

Powered by FUDForum. Page generated in 0.01767 seconds