You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Tom Miller <to...@hostwebase.com> on 2006/04/13 19:45:27 UTC
multiple context with one Tomcat5.x instance
Is there a how to for linux on how to get more than
one context to work under Tomcat 5.x?
I am not using ../webapps/ROOT as a default context.
I am trying to get three context under ../webapps/
../webapps/production/
../webapps/qa/
../webapps/sandbox/
to work with one tomcat instance and with multiple
Virtual host and jkworker.
Thanks,
Tom
---- Original message ----
>Date: Thu, 13 Apr 2006 13:33:12 -0400
>From: "Rob Elliott" <re...@ubiquitysoftware.com>
>Subject: RE: Serve a file instead of a page using Tomcat.
>To: "Tomcat Users List" <us...@tomcat.apache.org>
>
>Thanks for your response.
>
>I placed it under ROOT and I get the message HTTP Status
404 -
>video/3gp/video.3gp.
>
>What's interesting is that if I enter http://localhost:8080/
I get the
>admin page and then if I append video I see directory
listing containing
>the 3gp directory, append 3gp and see video.3gp etc. I can
get to the
>file this way but I want to specify the entire URL at once...
>
>-----Original Message-----
>From: P Y [mailto:py.foucou@gmail.com]
>Sent: Thursday, April 13, 2006 12:07 PM
>To: Tomcat Users List
>Subject: Re: Serve a file instead of a page using Tomcat.
>
>The default webapp is in ROOT/, so, create the directory
ROOT/video
>to be reached through http://localhost:8080/video/
>...
>
>On 4/13/06, Rob Elliott <re...@ubiquitysoftware.com>
wrote:
>> I understand what you are saying...
>>
>> My appbase is the default "webapps" directory. Under
webapps I created
>a
>> video\3gp folder and in it is a file video.3gp. I added
the following
>> Mime mapping to the web.xml
>>
>> <mime-mapping>
>> <extension>3gp</extension>
>> <mime-type>video/3gpp</mime-type>
>> </mime-mapping>
>>
>> I stopped and then started tomcat and entered the URL in
the browser
>>
>> http://localhost:8080/video/3gp/video.3gp
>>
>> however I receive 404 "The requested resource is not
available...
>>
>>
>>
>> -----Original Message-----
>> From: John Powers [mailto:jpowers@configureone.com]
>> Sent: Thursday, April 13, 2006 11:13 AM
>> To: Tomcat Users List
>> Subject: RE: Serve a file instead of a page using Tomcat.
>>
>> Whatever file you defined as a host in your server.xml
will work..
>(or
>> any subdirectory of course).
>>
>> So if your appbase is "c:\someDirOnMachine\stuff\abc\xyz\"
>>
>> And in there you have a folder called "\123\"
>>
>> With a file blah.ext
>>
>> You can just serve out with
>>
>> http://Hostname:port/123/blah.ext
>>
>>
>> -----Original Message-----
>> From: Rob Elliott [mailto:relliott@ubiquitysoftware.com]
>> Sent: Thursday, April 13, 2006 9:26 AM
>> To: Tomcat Users List
>> Subject: RE: Serve a file instead of a page using Tomcat.
>>
>> Thanks for your response,
>>
>> I don't see a "web" folder for Tomcat, only under webapps.
Will I need
>> to deploy a WAR file to do this?
>>
>> Thanks...
>>
>> -----Original Message-----
>> From: John Powers [mailto:jpowers@configureone.com]
>> Sent: Thursday, April 13, 2006 10:17 AM
>> To: Tomcat Users List
>> Subject: RE: Serve a file instead of a page using Tomcat.
>>
>> If the file is in the web folder then you can just path to
it
>> http://localhost:8080/somedir/somefile.ext
>>
>>
>> But if it isn't, then a servlet can read in from a file
stream and
>read
>> out to the servlet's out stream...
>>
>>
>>
>>
>> -----Original Message-----
>> From: Rob Elliott [mailto:relliott@ubiquitysoftware.com]
>> Sent: Thursday, April 13, 2006 8:35 AM
>> To: users@tomcat.apache.org
>> Subject: Serve a file instead of a page using Tomcat.
>>
>> Hello,
>>
>> Users will be entering a file URL with file extension into
browser.
>How
>> must you configure Tomcat to serve up a file for browser
download
>rather
>> than a web page?
>>
>> Thanks in advance,
>>
>>
>>
>> Information contained in this e-mail and any attachments
are intended
>> for the use of the addressee only, and may contain
confidential
>> information of Ubiquity Software Corporation. All
unauthorized use,
>> disclosure or distribution is strictly prohibited. If you
are not the
>> addressee, please notify the sender immediately and
destroy all copies
>> of this email. Unless otherwise expressly agreed in
writing signed by
>> an officer of Ubiquity Software Corporation, nothing in
this
>> communication shall be deemed to be legally binding.
Thank you.
>>
>>
>> -----------------------------------------------------------
----------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-
help@tomcat.apache.org
>>
>>
>>
>> -----------------------------------------------------------
----------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-
help@tomcat.apache.org
>>
>>
>> -----------------------------------------------------------
----------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-
help@tomcat.apache.org
>>
>>
>>
>> -----------------------------------------------------------
----------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-
help@tomcat.apache.org
>>
>>
>
>-------------------------------------------------------------
--------
>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>-------------------------------------------------------------
--------
>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>For additional commands, e-mail: users-help@tomcat.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org