RE: Asking again: index.jsp and virtual directories
That was it - thank you very much - dave David Thielen www.windwardreports.com 303-499-2544 -Original Message- From: andy gordon [mailto:[EMAIL PROTECTED] Sent: Thursday, September 22, 2005 10:27 AM To: Tomcat Users List Subject: Re: Asking again: index.jsp and virtual directories David, Have you looked at setting up virtual hosts in tomcat as this seems to be what you are looking for. - andy gordon David Thielen <[EMAIL PROTECTED]> wrote: Hi; I am running on Windows 2003/IIS 6.0 & tomcat. I have a single IP address for all of my websites (I have several) and then use the request header to determine which website to return. IIS does this very nicely. I want to have index.jsp in each of these websites. How can I set it up so that when isapi_redirect calls tomcat, it knows which website's index.jsp to use? The solution JRun uses is it will look in the IIS directory of the website for the jsp file. But I tried that with tomcat and it didn't work. Is there a way to do this? Thanks - dave Ps - to see what I mean, you can go to: http://www.windward.net or http://jasmine.windward.net/windward/ http://www.windwardreports.com or http://jasmine.windward.net/windwardreports/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Please verify this is correct: Need multiple virtual directories for isapi_redirector
I ask because I have come across way too many situations where something works not by design, but by luck. And then it turns out that while it did work - under certain circumstances it doesn't and I am left trying to find the correct solution in the middle of an emergency. Also, if this is the correct way to do it, I was going to post it in my blog as I am sure others run across this same problem. Thanks - dave David Thielen 303-499-2544 www.windwardreports.com -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 27, 2005 8:57 AM To: Tomcat Users List Subject: RE: Please verify this is correct: Need multiple virtual directories for isapi_redirector Dave, If it's working via a solution you've configured, and you are not writing a specification of how things will work, why do you keep asking this question? With best intentions, Allistair. > -Original Message- > From: David Thielen [mailto:[EMAIL PROTECTED] > Sent: 27 September 2005 15:52 > To: 'Tomcat Users List' > Subject: RE: Please verify this is correct: Need multiple virtual > directories for isapi_redirector > > > Asking again > > Thanks - dave > > David Thielen > 303-499-2544 > www.windwardreports.com > > -Original Message- > From: David Thielen [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 22, 2005 9:10 AM > To: 'Tomcat Users List' > Subject: Please verify this is correct: Need multiple virtual > directories > for isapi_redirector > > Hi; > > I want to make sure this is correct: > > > If you want to run Tomcat against multiple websites, not just > the default > website, this is what I have had to do. > > This is on Windows 2003/IIS 6.0. > > I removed isapi_redirector.dll from the default web site > ISAPI Filters and > put it in the parent "Web Sites" ISAPI Filter properties. > > I added a jakarta virtual directory for each website (and I > have a lot.). > > Now it appears to work. > > ??? - thanks - dave > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- Disclaimer: The information contained within this e-mail is confidential and may be privileged. This email is intended solely for the named recipient only; if you are not authorised you must not disclose, copy, distribute, or retain this message or any part of it. If you have received this message in error please contact the sender at once so that we may take the appropriate action and avoid troubling you further. Any views expressed in this message are those of the individual sender. QAS Limited has the right lawfully to record, monitor and inspect messages between its employees and any third party. Your messages shall be subject to such lawful supervision as QAS Limited deems to be necessary in order to protect its information, its interests and its reputation. Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS Limited cannot guarantee that attachments are virus free or compatible with your systems and does not accept any liability in respect of viruses or computer problems experienced. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Please verify this is correct: Need multiple virtual directories for isapi_redirector
Dave, If it's working via a solution you've configured, and you are not writing a specification of how things will work, why do you keep asking this question? With best intentions, Allistair. > -Original Message- > From: David Thielen [mailto:[EMAIL PROTECTED] > Sent: 27 September 2005 15:52 > To: 'Tomcat Users List' > Subject: RE: Please verify this is correct: Need multiple virtual > directories for isapi_redirector > > > Asking again > > Thanks - dave > > David Thielen > 303-499-2544 > www.windwardreports.com > > -Original Message- > From: David Thielen [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 22, 2005 9:10 AM > To: 'Tomcat Users List' > Subject: Please verify this is correct: Need multiple virtual > directories > for isapi_redirector > > Hi; > > I want to make sure this is correct: > > > If you want to run Tomcat against multiple websites, not just > the default > website, this is what I have had to do. > > This is on Windows 2003/IIS 6.0. > > I removed isapi_redirector.dll from the default web site > ISAPI Filters and > put it in the parent "Web Sites" ISAPI Filter properties. > > I added a jakarta virtual directory for each website (and I > have a lot.). > > Now it appears to work. > > ??? - thanks - dave > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- Disclaimer: The information contained within this e-mail is confidential and may be privileged. This email is intended solely for the named recipient only; if you are not authorised you must not disclose, copy, distribute, or retain this message or any part of it. If you have received this message in error please contact the sender at once so that we may take the appropriate action and avoid troubling you further. Any views expressed in this message are those of the individual sender. QAS Limited has the right lawfully to record, monitor and inspect messages between its employees and any third party. Your messages shall be subject to such lawful supervision as QAS Limited deems to be necessary in order to protect its information, its interests and its reputation. Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS Limited cannot guarantee that attachments are virus free or compatible with your systems and does not accept any liability in respect of viruses or computer problems experienced. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Please verify this is correct: Need multiple virtual directories for isapi_redirector
Asking again Thanks - dave David Thielen 303-499-2544 www.windwardreports.com -Original Message- From: David Thielen [mailto:[EMAIL PROTECTED] Sent: Thursday, September 22, 2005 9:10 AM To: 'Tomcat Users List' Subject: Please verify this is correct: Need multiple virtual directories for isapi_redirector Hi; I want to make sure this is correct: If you want to run Tomcat against multiple websites, not just the default website, this is what I have had to do. This is on Windows 2003/IIS 6.0. I removed isapi_redirector.dll from the default web site ISAPI Filters and put it in the parent "Web Sites" ISAPI Filter properties. I added a jakarta virtual directory for each website (and I have a lot.). Now it appears to work. ??? - thanks - dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Please verify this is correct: Need multiple virtual directories for isapi_redirector
Hi; Trying again... Thanks - dave -Original Message- From: David Thielen [mailto:[EMAIL PROTECTED] Sent: Thursday, September 22, 2005 9:10 AM To: 'Tomcat Users List' Subject: Please verify this is correct: Need multiple virtual directories for isapi_redirector Hi; I want to make sure this is correct: If you want to run Tomcat against multiple websites, not just the default website, this is what I have had to do. This is on Windows 2003/IIS 6.0. I removed isapi_redirector.dll from the default web site ISAPI Filters and put it in the parent "Web Sites" ISAPI Filter properties. I added a jakarta virtual directory for each website (and I have a lot.). Now it appears to work. ??? - thanks - dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Asking again: index.jsp and virtual directories
David, Have you looked at setting up virtual hosts in tomcat as this seems to be what you are looking for. - andy gordon David Thielen <[EMAIL PROTECTED]> wrote: Hi; I am running on Windows 2003/IIS 6.0 & tomcat. I have a single IP address for all of my websites (I have several) and then use the request header to determine which website to return. IIS does this very nicely. I want to have index.jsp in each of these websites. How can I set it up so that when isapi_redirect calls tomcat, it knows which website's index.jsp to use? The solution JRun uses is it will look in the IIS directory of the website for the jsp file. But I tried that with tomcat and it didn't work. Is there a way to do this? Thanks - dave Ps - to see what I mean, you can go to: http://www.windward.net or http://jasmine.windward.net/windward/ http://www.windwardreports.com or http://jasmine.windward.net/windwardreports/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort.
Please verify this is correct: Need multiple virtual directories for isapi_redirector
Hi; I want to make sure this is correct: If you want to run Tomcat against multiple websites, not just the default website, this is what I have had to do. This is on Windows 2003/IIS 6.0. I removed isapi_redirector.dll from the default web site ISAPI Filters and put it in the parent "Web Sites" ISAPI Filter properties. I added a jakarta virtual directory for each website (and I have a lot.). Now it appears to work. ??? - thanks - dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Asking again: index.jsp and virtual directories
Hi; I am running on Windows 2003/IIS 6.0 & tomcat. I have a single IP address for all of my websites (I have several) and then use the request header to determine which website to return. IIS does this very nicely. I want to have index.jsp in each of these websites. How can I set it up so that when isapi_redirect calls tomcat, it knows which website's index.jsp to use? The solution JRun uses is it will look in the IIS directory of the website for the jsp file. But I tried that with tomcat and it didn't work. Is there a way to do this? Thanks - dave Ps - to see what I mean, you can go to: http://www.windward.net or http://jasmine.windward.net/windward/ http://www.windwardreports.com or http://jasmine.windward.net/windwardreports/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Asking again: Need multiple virtual directories for isapi_redirector
Please remove me from this reply list. It is a mistake. thanks -Original Message- From: David Thielen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 20, 2005 11:11 PM To: 'Tomcat Users List' Subject: Asking again: Need multiple virtual directories for isapi_redirector Hi; I want to make sure this is correct: If you want to run Tomcat against multiple websites, not just the default website, this is what I have had to do. This is on Windows 2003/IIS 6.0. I removed isapi_redirector.dll from the default web site ISAPI Filters and put it in the parent "Web Sites" ISAPI Filter properties. I added a jakarta virtual directory for each website (and I have a lot.). Now it appears to work. ??? - thanks - dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Asking again: index.jsp and virtual directories
Hi; I am running on Windows 2003/IIS 6.0 & tomcat. I have a single IP address for all of my websites (I have several) and then use the request header to determine which website to return. IIS does this very nicely. I want to have index.jsp in each of these websites. How can I set it up so that when isapi_redirect calls tomcat, it knows which website's index.jsp to use? The solution JRun uses is it will look in the IIS directory of the website for the jsp file. But I tried that with tomcat and it didn't work. Is there a way to do this? Thanks - dave Ps - to see what I mean, you can go to: http://www.windward.net or http://jasmine.windward.net/windward/ http://www.windwardreports.com or http://jasmine.windward.net/windwardreports/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Asking again: Need multiple virtual directories for isapi_redirector
Hi; I want to make sure this is correct: If you want to run Tomcat against multiple websites, not just the default website, this is what I have had to do. This is on Windows 2003/IIS 6.0. I removed isapi_redirector.dll from the default web site ISAPI Filters and put it in the parent "Web Sites" ISAPI Filter properties. I added a jakarta virtual directory for each website (and I have a lot.). Now it appears to work. ??? - thanks - dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
index.jsp and virtual directories
Hi; I am running on Windows 2003/IIS 6.0 & tomcat. I have a single IP address for all of my websites (I have several) and then use the request header to determine which website to return. IIS does this very nicely. I want to have index.jsp in each of these websites. How can I set it up so that when isapi_redirect calls tomcat, it knows which website's index.jsp to use? The solution JRun uses is it will look in the IIS directory of the website for the jsp file. But I tried that with tomcat and it didn't work. Is there a way to do this? Thanks - dave Ps - to see what I mean, you can go to: http://www.windward.net or http://jasmine.windward.net/windward/ http://www.windwardreports.com or http://jasmine.windward.net/windwardreports/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Asking again: Need multiple virtual directories for isapi_redirector
Hi; I want to make sure this is correct: If you want to run Tomcat against multiple websites, not just the default website, this is what I have had to do. This is on Windows 2003/IIS 6.0. I removed isapi_redirector.dll from the default web site ISAPI Filters and put it in the parent "Web Sites" ISAPI Filter properties. I added a jakarta virtual directory for each website (and I have a lot.). Now it appears to work. ??? - thanks - dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need multiple virtual directories for isapi_redirector
Hi; If you want to run Tomcat against multiple websites, not just the default website, this is what I have had to do. IS THIS CORRECT?? This is on Windows 2003/IIS 6.0. I removed isapi_redirector.dll from the default web site ISAPI Filters and put it in the parent "Web Sites" ISAPI Filter properties. I added a jakarta virtual directory for each website (and I have a lot.). Now it appears to work. ??? - thanks - dave Google: HttpFilterProc::jk_isapi_plugin.c (849): [/track/index.htm] is a servlet url - should redirect to ajp13w (last line in log) Host header Multiple web sites
RE: Is there such a beast ? (virtual directories)
> Mike Curwen wrote: >> >> >> >> >> > I think this syntax would confuse Tomcat. I thought only one > tag is allowed ...? I could be wrong. No, you can have as many contexts as you like... What happens when the context element is root of a document in conf/catalina/localhost (version 5) ? 3 files all relating to the same app? regards DaveP ** snip here ** -- DISCLAIMER: NOTICE: The information contained in this email and any attachments is confidential and may be privileged. If you are not the intended recipient you should not use, disclose, distribute or copy any of the content of it or of any attachment; you are requested to notify the sender immediately of your receipt of the email and then to delete it and any attachments from your system. RNIB endeavours to ensure that emails and any attachments generated by its staff are free from viruses or other contaminants. However, it cannot accept any responsibility for any such which are transmitted. We therefore recommend you scan all attachments. Please note that the statements and views expressed in this email and any attachments are those of the author and do not necessarily represent those of RNIB. RNIB Registered Charity Number: 226227 Website: http://www.rnib.org.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Is there such a beast ? (virtual directories)
At 12:13 PM 7/13/2004, you wrote: One option is to use a servlet that serves static files from directories and map that servlet in your web application's web.xml. This is nowhere near as robust or secure as putting httpd infront of your servlet containers. Again since this _could_ point outside the application directory it's a poor solution. This approach is what we've done to use shared resources (static content) amongst multiple apps. In some deployment environments, running Apache in front of Tomcat is a no-go for our customers, so implementing this way allows us to *optionally* use Apache: If Apache present, image is at http://www.site.com/images/a.gif and physically at /.../images/a.gif If Apache is not present, image is at http://www.site.com/webAppA/static?a.gif and physically at /.../images/a.gif Point being, implementing the serving as a separate servlet can give you additional flexibility at deployment time. The assertion that this diminishes robustness and/or security must be taken in context -- in many situations, this can be preferable to running with Apache in front. As always, YMMV. justin Otherwise (as in Carl's suggestion): You can "overlap" URI mappings to contexts. So you can map: /app1 -> fooApplication.war /app1/images -> /usr/home/tomcat/images as long as your images directory is a deployable web application. Original Message Follows From: "Mike Curwen" <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: Is there such a beast ? (virtual directories) Date: Tue, 13 Jul 2004 10:12:56 -0500 Hello all, I had a friend ask me on the phone a couple days ago, and now a question has popped up at javaranch. I've looked in the docs and googled, but haven't found a definitive 'no' answer (shouldn't life be that simple?). Thought I'd ask here. Is there such a thing as directory aliasing / virtual directories (like you get in Apache), available in Tomcat? so you'd specify that /images is *really* over here at /usr/local/some/funky/place/images I like to tell people they don't need Apache, unless they're doing "special" stuff. Would this be one of those "special" things ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Is there such a beast ? (virtual directories)
This goes against the grain of the servlet spec. Generally, images would be something tied to a web application and would therefore be contained within the application war file (or directory) so that the webapp would be deployed as a single unit. ...but I'm not a puriest so have at it :P One option is to use a servlet that serves static files from directories and map that servlet in your web application's web.xml. This is nowhere near as robust or secure as putting httpd infront of your servlet containers. Again since this _could_ point outside the application directory it's a poor solution. Otherwise (as in Carl's suggestion): You can "overlap" URI mappings to contexts. So you can map: /app1 -> fooApplication.war /app1/images -> /usr/home/tomcat/images as long as your images directory is a deployable web application. Original Message Follows From: "Mike Curwen" <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: Is there such a beast ? (virtual directories) Date: Tue, 13 Jul 2004 10:12:56 -0500 MIME-Version: 1.0 Received: from mail.apache.org ([209.237.227.199]) by mc4-f28.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Tue, 13 Jul 2004 08:13:17 -0700 Received: (qmail 41774 invoked by uid 500); 13 Jul 2004 15:13:05 - Received: (qmail 41755 invoked by uid 99); 13 Jul 2004 15:13:05 - Received: from [139.142.220.22] (HELO brad.globallyboundless.com) (139.142.220.22) by apache.org (qpsmtpd/0.27.1) with ESMTP; Tue, 13 Jul 2004 08:13:02 -0700 Received: from BALTHAZAR ([10.0.0.111])by mail.gb-im.com (8.10.2/8.10.2) with ESMTP id i6DFCuV12696for <[EMAIL PROTECTED]>; Tue, 13 Jul 2004 10:12:56 -0500 X-Message-Info: JGTYoYF78jFNeFApfa+UFHTL+Uj4Gjtk Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:[EMAIL PROTECTED]> List-Subscribe: <mailto:[EMAIL PROTECTED]> List-Help: <mailto:[EMAIL PROTECTED]> List-Post: <mailto:[EMAIL PROTECTED]> List-Id: "Tomcat Users List" Delivered-To: mailing list [EMAIL PROTECTED] X-ASF-Spam-Status: No, hits=0.0 required=10.0tests=FROM_HAS_ULINE_NUMS X-Spam-Check-By: apache.org Message-ID: <[EMAIL PROTECTED]> X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Virus-Checked: Checked Return-Path: [EMAIL PROTECTED] X-OriginalArrivalTime: 13 Jul 2004 15:13:17.0305 (UTC) FILETIME=[ECD2AE90:01C468EB] Hello all, I had a friend ask me on the phone a couple days ago, and now a question has popped up at javaranch. I've looked in the docs and googled, but haven't found a definitive 'no' answer (shouldn't life be that simple?). Thought I'd ask here. Is there such a thing as directory aliasing / virtual directories (like you get in Apache), available in Tomcat? so you'd specify that /images is *really* over here at /usr/local/some/funky/place/images I like to tell people they don't need Apache, unless they're doing "special" stuff. Would this be one of those "special" things ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN Toolbar provides one-click access to Hotmail from any Web page FREE download! http://toolbar.msn.click-url.com/go/onm00200413ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is there such a beast ? (virtual directories)
On Wed, Jul 14, 2004 at 12:07:30AM +0800, Chong Yu Meng wrote: : > : > : > : > : I think this syntax would confuse Tomcat. I thought only one : tag is allowed ...? I could be wrong. Not true -- one Tomcat virtual host may serve several webapps (contexts). -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is there such a beast ? (virtual directories)
Chong Yu Meng wrote, On 7/13/2004 9:07 AM: Mike Curwen wrote: I think this syntax would confuse Tomcat. I thought only one tag is allowed ...? I could be wrong. No, you can have as many contexts as you like... -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is there such a beast ? (virtual directories)
Hi Mike, Mike Curwen wrote: Hm... would that work in this case: I think this syntax would confuse Tomcat. I thought only one tag is allowed ...? I could be wrong. Regards, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Is there such a beast ? (virtual directories)
Hm... would that work in this case: then from the browser I'd want: http://www.mydomain.com/foo-app/images to look inside /some/other/path (the virtual directory should only be available from within foo-app). > -Original Message- > From: Carl Olivier [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 13, 2004 10:14 AM > To: Tomcat Users List > Subject: RE: Is there such a beast ? (virtual directories) > > > Inside a host you could add a docBase="/usr/local/somewhere" /> > > Regards, > > Carl > > -Original Message- > From: Mike Curwen [mailto:[EMAIL PROTECTED] > Sent: 13 July 2004 05:13 PM > To: [EMAIL PROTECTED] > Subject: Is there such a beast ? (virtual directories) > > Hello all, > > I had a friend ask me on the phone a couple days ago, and now > a question has popped up at javaranch. I've looked in the > docs and googled, but haven't found a definitive 'no' answer > (shouldn't life be that simple?). Thought I'd ask here. > > Is there such a thing as directory aliasing / virtual > directories (like you get in Apache), available in Tomcat? > > so you'd specify that /images is *really* over here at > /usr/local/some/funky/place/images > > I like to tell people they don't need Apache, unless they're > doing "special" stuff. Would this be one of those "special" things ? > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Is there such a beast ? (virtual directories)
Inside a host you could add a Regards, Carl -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: 13 July 2004 05:13 PM To: [EMAIL PROTECTED] Subject: Is there such a beast ? (virtual directories) Hello all, I had a friend ask me on the phone a couple days ago, and now a question has popped up at javaranch. I've looked in the docs and googled, but haven't found a definitive 'no' answer (shouldn't life be that simple?). Thought I'd ask here. Is there such a thing as directory aliasing / virtual directories (like you get in Apache), available in Tomcat? so you'd specify that /images is *really* over here at /usr/local/some/funky/place/images I like to tell people they don't need Apache, unless they're doing "special" stuff. Would this be one of those "special" things ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Is there such a beast ? (virtual directories)
Hello all, I had a friend ask me on the phone a couple days ago, and now a question has popped up at javaranch. I've looked in the docs and googled, but haven't found a definitive 'no' answer (shouldn't life be that simple?). Thought I'd ask here. Is there such a thing as directory aliasing / virtual directories (like you get in Apache), available in Tomcat? so you'd specify that /images is *really* over here at /usr/local/some/funky/place/images I like to tell people they don't need Apache, unless they're doing "special" stuff. Would this be one of those "special" things ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Virtual directories in Tomcat 5
In tomcat 5, the context tag works as : - Original Message - From: "Honza Spurny" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 15, 2004 5:25 PM Subject: Virtual directories in Tomcat 5 > Hi there, > > I had been using tomcat 4.1 and since I've made a change to TomCat 5.0.19, > I'm having problems with creating virtual direcotries. > > All I want to do is to map for example such url : > http://localhost/work/document.jsp to different directory than the > $TomCatHome/webapps/Root/work/documnet.jsp. I would like to map every link > starts with /work/ into directory c:\jspDocs\work. > > How to do this? In older version I had reached it by specifiing the CONTEXT > element in /conf/server.xml file. I've tried it again and it works fine > until the first restart of tomcat. Now it doesn't work. Please, could > anybody help me with this. I'm really novice in tomcat, this is not the main > range of my job. > > Thanks for helping > Best Regards > Honza S. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Virtual directories in Tomcat 5
Hi there, I had been using tomcat 4.1 and since I've made a change to TomCat 5.0.19, I'm having problems with creating virtual direcotries. All I want to do is to map for example such url : http://localhost/work/document.jsp to different directory than the $TomCatHome/webapps/Root/work/documnet.jsp. I would like to map every link starts with /work/ into directory c:\jspDocs\work. How to do this? In older version I had reached it by specifiing the CONTEXT element in /conf/server.xml file. I've tried it again and it works fine until the first restart of tomcat. Now it doesn't work. Please, could anybody help me with this. I'm really novice in tomcat, this is not the main range of my job. Thanks for helping Best Regards Honza S. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
creating virtual directories
how i change the default document root directory? and how i create a virtual document directory? ps.: im using tomcat 5 - windows XP Gabriel
IIS 5/Tomcat 4.1.24 virtual directories
I am replacing .asp code with .jsp but would like to keep IIS as the front end and pass requests to Tomcat to process any .jsp. I have IIS and Tomcat playing together nicely, save one (very important) thing, the virtual directories need to go away. I have a website called www.coolsite.com, when that hits the load balancer, I need it to pass it on to an IP: 10.0.0.1 where IIS is listening, but it only seems to work when I put in www.coolsite.com/coolapp (where coolapp is the context on Tomcat). I have tried changing the IIS home directory to include the coolapp directory as well as the parent directory (tomcat\webapps) but neither works (I always have to have the coolapp in the URL). Any ideas on how to get rid of the "coolapp"? Thank you, Rich - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Virtual directories/Host via mod_JK2
We have a bunch of customers using JSP on JDK 1.3.1 / Tomcat 3.1?2? / mod_jk / Apache 1.3. The default directory setup for these customers is DIRECTORY http://- path- - ./site_url/htmlhttp://siteurl ./site_url/jsp http://siteurl/jsp ./site_url/cgi-bin http://siteurl/cgi-bin ./site_url/logs-- we use mod_jk.conf-auto to when we add a new site all we have to do is add the virtual host in apache and server.xml, reboot tomcat & apache and we are set. We'd like to move the same setup to JDK 1.4.2_01 / Tomcat 4.1.27 / mod_jk2 / Apache 2 All the HOW-TO's I've found do far and are hence far more more complex than we need. My understanding of how this should work is as follows: in Apache conf file in server.xml VirtualHost1.exported_dir - -> VirtualHost1.contextpath->jsp_dir VirtualHost2.exported_dir - -> VirtualHost2.contextpath->jsp_dir VirtualHost3.exported_dir - -> VirtualHost3.contextpath->jsp_dir VirtualHost4.exported_dir -via mod_jk2.so-> VirtualHost4.contextpath->jsp_dir VirtualHost5.exported_dir -[one entry in -> VirtualHost5.contextpath->jsp_dir VirtualHost6.exported_dir -via mod_jk2.so-> VirtualHost6.contextpath->jsp_dir VirtualHostN.exported_dir - -> VirtualHostN.contextpath->jsp_dir can someone point me to a resource which might provide some info on piping requests to certain virtual directories thru mod_jk2. thanks. Sai. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Virtual Directories under tomcat?
Typically, directories web applications or sub-directories of same. Looks like you're using the ROOT Context, which means "downloaddir" would be a sub-directory of that. I think what you are probably looking for is: http://localhost/myservlet?filename=abc.txt Then, in your servlet, read the file from the location and spool it out to the browser. Something along the lines of: // send file to browser java.io.OutputStream o = response.getOutputStream(); java.io.FileInputStream is = new java.io.FileInputStream(filePath + "/" + fileName); java.io.File oFile = new java.io.File(filePath + "/" + fileName); response.setContentType("image/gif"); // or whatever MIME type you want response.setContentLength((int)oFile.length()); byte[] buf = new byte[32 * 1024]; // 32k buffer int nRead = 0; while( (nRead=is.read(buf)) != -1 ) { o.write(buf, 0, nRead); } o.flush(); o.close(); oFile = null; // end John Robert Priest wrote: How do I create a virtual directory under tomcat? For instance /DownloadDir/ -> maps to -> c:\temp\downloads\ In a url a user would enter something like: http://localhost/myservlet/downloaddir/abc.txtto access the files in c:\temp\downloads I wouldn't use a context for that, would I? Doesn't a Context represent a "Web Application", not just a directory? Anyone have any information on setting one up? Thank you in advance... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Virtual Directories under tomcat?
How do I create a virtual directory under tomcat? For instance /DownloadDir/ -> maps to -> c:\temp\downloads\ In a url a user would enter something like: http://localhost/myservlet/downloaddir/abc.txtto access the files in c:\temp\downloads I wouldn't use a context for that, would I? Doesn't a Context represent a "Web Application", not just a directory? Anyone have any information on setting one up? Thank you in advance... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Virtual directories
Is there any way of specifying virtual directories in a host in tomcat with out using contexts ? I'm trying to define a folder with in my webapplication that is shared between web-apps, and I need requests to this folder to go through a request filter in the root-context, the filter authenticates the user making the request and handles it before it's chained on to the actual. I've tried to mark the contexts as cross-context but that did not help. I'm really trying to specify a "apache style"- virtual directory in the tomcat server, so if anyone knows a good way to do that, please share. Thanx -reynir -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
can i use virtual directories (aliasing) using only tomcat, not apache
do i have to integrate tomcat 4.0 with apache in order to use virtual directories for static content (images and so forth)? or is there a way to do this using only tomcat? i couldn't find anything in the tomcat docs about it. mark weaver
Tip: Avoiding A 404 With *.jsp In Virtual Directories Using IIS 5 & Tomcat On Windows 2000
Hi; I just spent some more time hair pulling for something I'm sure other people will experience. I am posting my solution here so that it will end up in the archives. I have IIS 5, Tomcat 3.2, jdk 1.3.1 working together on windows 2000. I like to keep all of my work in C:\Projectsmany good reasons to do this. I set up C:\Projects as a virtual directory in IIS. I kept getting a 404 whenever I tried to access my "test.jsp" page. I solved the problem by adding this line to server.xml in my Tomcat\conf dir, and then rebooting tomcat: Good Luck Steve Steve Russell Web Developer III ValueOptions - Lifescape 703-205-6589 [EMAIL PROTECTED] ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender by email, delete and destroy this message and its attachments. **
RE: apache virtual directories
Kindly read the documentation. shuklix -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 30, 2000 1:35 AM To: [EMAIL PROTECTED] Subject: apache virtual directories How do I set up virtual directories in Apache? I used the Alias directive like: Alias /temp c:/sampledir/dir2/dir3 This did not work? Should this work if I add it to the httpd.conf file? corey.
apache virtual directories
How do I set up virtual directories in Apache? I used the Alias directive like: Alias /temp c:/sampledir/dir2/dir3 This did not work? Should this work if I add it to the httpd.conf file? corey.