tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pid <...@pidster.com>
Subject Re: Hosted environment
Date Wed, 21 Dec 2011 16:38:58 GMT
On 21/12/2011 07:00, Pid * wrote:
> On 21 Dec 2011, at 06:52, "r.sriram" <sriram@rstech.net> 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
> 
> If the web server is currently publishing the httpdocs directory, then
> the above is wrong and dangerously insecure.
> 
> Like I said earlier:
> 
>  C:\inetpub\vhosts\y.com\webapps


Like I said above ^^^


p


>>   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<sriram@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-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>>
>>>


-- 

[key:62590808]


Mime
View raw message