Hello,
I followed: http://wiki.apache.org/tomcat/TomcatDevelopmentVirtualHosts
and made the following changes:
C:\inetpub\vhosts\x.com\httpdocs\webapps
added the following in Server.xml:
<Host name="x.com"
appBase="C:\inetpub\vhosts\x.com\httpdocs\webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
</Host>
For virtual host x.com- copied *manager.xml* to
$CATALINA_HOME/conf/Catalina/x.com/httpdocs
For virtual host x.com copied ROOT to
C:\inetpub\vhosts\x.com\httpdocs\webapps
For virtual host x.com copied manager to
C:\inetpub\vhosts\x.com\httpdocs\webapps
I tried all of these without httpdocs as well.
Still when I invoke www.x.com, I get displayed Index.html that is there
in C:\inetpub\vhosts\x.com\httpdocs.
what am I doing wrong?
Thanks.....rs
=================================================================================================================
On 12/21/2011 11:13 AM, r.sriram wrote:
Thanks Mark.
this is great. I just wanted to make sure, for each of the virtual
hosts, I can create the webapps directory outside of Apache directory
structure can't I? e.g.
C:\inetpub\vhosts\x.com\httpdocs\webapps
C:\inetpub\vhosts\y.com\httpdocs\webapps
C:\inetpub\vhosts\z.com\httpdocs\webapps
copying ROOT will also copy the web.xml. So I am assuming the web.xml
can be customized appropriately to go to the servlet appropriate for
specific domain, correct?
and working with domain names (it is all registered with dns etc.) if
I invoke www.x.com it will get directed to the appropriate ROOT, pick
up the appropriate servlet from web.xml, the classes, images,
parameters etc. from the appropriate ROOT, correct?
Thanks.....Sriram
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
On 12/20/2011 11:14 PM, Mark Eggers wrote:
----- Original Message -----
From: r.sriram<sri...@rstech.net>
To: Tomcat Users List<users@tomcat.apache.org>
Cc:
Sent: Tuesday, December 20, 2011 1:21 AM
Subject: Re: Hosted environment
T hanks Andre.
a few quick questions.
Questions with respect to your response:
Your response:
<Host name="host1.domain1.com"...
appBase="/path1/webapps/" ..>
...
</Host>
<Host name="host2.domain2.com"...
appBase="/path2/webapps/" ..>
...
</Host>
Questions:
* which is the file where I should add these lines
* Is host1:www. If not what is it?
* does path1, path2 etc. start at CATALINA_HOME?
* Is there any other configuration change that I need to do
My Situation
Tomcat will be installed in directory let us say in Program Files (*86)
directory. That will have the web-inf directory.
Each domain has its own root, let us say: ..\domainX.com\httpdocs,
domainY.com\httpdocs etc.
Questions:
* should I copy WEB-INF directory from C:\Program Files
(x86)\apache-tomcat-6.0.33\webapps\ROOT\ to each of
..\domainX.com\httpdocs, domainY.com\httpdocs etc.
On 12/19/2011 1:12 PM, André Warnier wrote:
r.sriram wrote:
Hello,
I am setting up my multiple domains on Go Daddy. In my current
in-house
windows server my Tomcat is on Program Files (86) and the ROOT is in
C:\Program Files (x86)\apache-tomcat-6.0.33\webapps directory. That
is where WEB-INF is, that is what is my actual path for all files
that gets
picked up by my web pages (including my servlets).
In Go Daddy, there would be different ROOTs for each domain.
(../<domain>/httpdocs) But there would be one Tomcat installation.
can Tomcat be installed in Program Files (86), and the servlets,
and
all the files needed for the domain be placed in ../<domain
name>/httpdocs?
Thanks.....Ram
Sure. Look at virtual hosts, here :
http://tomcat.apache.org/tomcat-7.0-doc/config/host.html
(and their appBase attribute)
<Host name="host1.domain1.com"...
appBase="/path1/webapps/" ..>
...
</Host>
<Host name="host2.domain2.com"...
appBase="/path2/webapps/" ..>
...
</Host>
etc..
I suggest to leave the default<Host name="localhost" ..>
as it is, and just add the others.
This might be useful:
http://wiki.apache.org/tomcat/TomcatDevelopmentVirtualHosts
I've used this setup along with CATALINA_BASE / CATALINA_HOME to run
large numbers of Tomcats in production.
. . . . just my two cents.
/mde/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org