Re: mod_webapp or perhaps apache question
On Fri, 2 Aug 2002, Milt Epstein wrote: On Sat, 3 Aug 2002, Markus Bengts wrote: On Fri, 2 Aug 2002 [EMAIL PROTECTED] wrote: If webmail isn't a directory under qvdintra, then I don't see a problem. webmail is not under qvdintra. It is possible to use it like this with servlet/ or _/ or some other extra string in the url-path to every servlet. I just don't want to have something extra in the path to servlets. I may be wrong, but I'm not sure you're going to be able to do that. Because when you give WebAppDeploy the URL pattern /, you're effectively telling it that Apache should pass everything to Tomcat. I'm not sure you can make it do everything but this one thing. Ok. Thanks. I thought there would be a way to configure apache to do: if ( path starts with /webmail ) use Alias; else use WebAppDeploy; I want to have: WebAppDeployqvdintra defConn/ But still I need to have apache serving urls that have /webmail in the beginning of the path. (The webmail application is written in php.) Markus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
mod_webapp or perhaps apache question
Hello, In my apache conf I have these lines for a virtual host: # Alias /webmail /home/qvd/www/webmail # Tomcat configurations IfModule mod_webapp.c WebAppDeploy qvdintra defConn /_ /IfModule I don't want to have _/ in my servlet urls, but if I remove '_' my webmail stops working. I want to send everything else to tomcat except for urls with /webmail in the beginning of the path. Can anyone help me with this configuration? I thought the alias before the WebAppDeploy would help, but it seems that order doesn't matter here. Markus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: mod_webapp or perhaps apache question
What's the directory layout? Is qvdintra a directory? It would be a good idea to send the directory layout. This way someone could give you an informed answer FYI:- The WebAppDeploy syntax is: WebAppDeploy application_name connection_name url_path where, application_name - the directory present under your webapps directory connection_name - the name declared in your WebAppConnection statement url_path - the url path where the application will be deployed i.e. the URL you enter in your browser to access this webapplication. Alias: Alias allows files to be stored in the filesystem other than under DocumentRoot. RS Markus Bengts [EMAIL PROTECTED]To: [EMAIL PROTECTED] p.ficc: Subject: mod_webapp or perhaps apache question 08/02/02 03:20 PM Please respond to Tomcat Users List Hello, In my apache conf I have these lines for a virtual host: # Alias /webmail /home/qvd/www/webmail # Tomcat configurations IfModule mod_webapp.c WebAppDeploy qvdintra defConn /_ /IfModule I don't want to have _/ in my servlet urls, but if I remove '_' my webmail stops working. I want to send everything else to tomcat except for urls with /webmail in the beginning of the path. Can anyone help me with this configuration? I thought the alias before the WebAppDeploy would help, but it seems that order doesn't matter here. Markus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: mod_webapp or perhaps apache question
On Fri, 2 Aug 2002 [EMAIL PROTECTED] wrote: What's the directory layout? Is qvdintra a directory? The WebAppDeploy syntax is: WebAppDeploy application_name connection_name url_path qvdintra is an application name which is the same as the directory present under my webapps directory. The connection works fine. My problem is that the webmail should be served by apache and everything else by tomcat. I want to have: WebAppDeploy qvdintra defConn / But still I need to have apache serving urls that have /webmail in the beginning of the path. (The webmail application is written in php.) In my apache conf I have these lines for a virtual host: # Alias /webmail /home/qvd/www/webmail # Tomcat configurations IfModule mod_webapp.c WebAppDeploy qvdintra defConn /_ /IfModule I don't want to have _/ in my servlet urls, but if I remove '_' my webmail stops working. I want to send everything else to tomcat except for urls with /webmail in the beginning of the path. Can anyone help me with this configuration? I thought the alias before the WebAppDeploy would help, but it seems that order doesn't matter here. Markus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: mod_webapp or perhaps apache question
Is webmail a directory under qvdintra? If it is, then you are better off using mod_jk as a connector rather than mod_webapp. With mod_jk you have better control over the what is being passed to Tomcat. You could pass only *.jsp and everything that has /servlet. With mod_webapp everything under the application_directory (in your case, qvdintra) would be passed to Tomcat. OR you could move webmail outside the qvdintra directory, if you still wish to stick with mod_webapp. If webmail isn't a directory under qvdintra, then I don't see a problem. RS Markus Bengts [EMAIL PROTECTED]To: Tomcat Users List p.fi [EMAIL PROTECTED] cc: 08/02/02 04:25 PMSubject: Re: mod_webapp or perhaps apache question Please respond to Tomcat Users List On Fri, 2 Aug 2002 [EMAIL PROTECTED] wrote: What's the directory layout? Is qvdintra a directory? The WebAppDeploy syntax is: WebAppDeploy application_name connection_name url_path qvdintra is an application name which is the same as the directory present under my webapps directory. The connection works fine. My problem is that the webmail should be served by apache and everything else by tomcat. I want to have: WebAppDeploy qvdintra defConn / But still I need to have apache serving urls that have /webmail in the beginning of the path. (The webmail application is written in php.) In my apache conf I have these lines for a virtual host: # Alias /webmail /home/qvd/www/webmail # Tomcat configurations IfModule mod_webapp.c WebAppDeploy qvdintra defConn /_ /IfModule I don't want to have _/ in my servlet urls, but if I remove '_' my webmail stops working. I want to send everything else to tomcat except for urls with /webmail in the beginning of the path. Can anyone help me with this configuration? I thought the alias before the WebAppDeploy would help, but it seems that order doesn't matter here. Markus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: mod_webapp or perhaps apache question
On Fri, 2 Aug 2002 [EMAIL PROTECTED] wrote: If webmail isn't a directory under qvdintra, then I don't see a problem. webmail is not under qvdintra. It is possible to use it like this with servlet/ or _/ or some other extra string in the url-path to every servlet. I just don't want to have something extra in the path to servlets. On Fri, 2 Aug 2002 [EMAIL PROTECTED] wrote: What's the directory layout? Is qvdintra a directory? The WebAppDeploy syntax is: WebAppDeploy application_name connection_name url_path qvdintra is an application name which is the same as the directory present under my webapps directory. The connection works fine. My problem is that the webmail should be served by apache and everything else by tomcat. I want to have: WebAppDeploy qvdintra defConn / But still I need to have apache serving urls that have /webmail in the beginning of the path. (The webmail application is written in php.) In my apache conf I have these lines for a virtual host: # Alias /webmail /home/qvd/www/webmail # Tomcat configurations IfModule mod_webapp.c WebAppDeploy qvdintra defConn /_ /IfModule I don't want to have _/ in my servlet urls, but if I remove '_' my webmail stops working. I want to send everything else to tomcat except for urls with /webmail in the beginning of the path. Can anyone help me with this configuration? I thought the alias before the WebAppDeploy would help, but it seems that order doesn't matter here. Markus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: mod_webapp or perhaps apache question
Maybe it's just me or maybe it's Friday. But I'm sorry, I'm a little confused. What is _? Is that some directory you defined or is that something you just put in your email. _ generally is used when you define a Root context and wish to access your site as http://domain-name/ Let's try once again. Since webmail is a php application, it will be handled by Apache. You would create an Alias for webmail if it isn't under your DocumentRoot. And you have jsps and servlets under qvdintra which will go to Tomcat as directed by your WebAppDeploy statement. You would access your servlets with under qvdintra by prefixing the className (or url-mapping. see web.xml) with servlet/ RS Markus Bengts [EMAIL PROTECTED]To: Tomcat Users List p.fi [EMAIL PROTECTED] cc: 08/02/02 04:48 PMSubject: Re: mod_webapp or perhaps apache question Please respond to Tomcat Users List On Fri, 2 Aug 2002 [EMAIL PROTECTED] wrote: If webmail isn't a directory under qvdintra, then I don't see a problem. webmail is not under qvdintra. It is possible to use it like this with servlet/ or _/ or some other extra string in the url-path to every servlet. I just don't want to have something extra in the path to servlets. On Fri, 2 Aug 2002 [EMAIL PROTECTED] wrote: What's the directory layout? Is qvdintra a directory? The WebAppDeploy syntax is: WebAppDeploy application_name connection_name url_path qvdintra is an application name which is the same as the directory present under my webapps directory. The connection works fine. My problem is that the webmail should be served by apache and everything else by tomcat. I want to have: WebAppDeploy qvdintra defConn / But still I need to have apache serving urls that have /webmail in the beginning of the path. (The webmail application is written in php.) In my apache conf I have these lines for a virtual host: # Alias /webmail /home/qvd/www/webmail # Tomcat configurations IfModule mod_webapp.c WebAppDeploy qvdintra defConn /_ /IfModule I don't want to have _/ in my servlet urls, but if I remove '_' my webmail stops working. I want to send everything else to tomcat except for urls with /webmail in the beginning of the path. Can anyone help me with this configuration? I thought the alias before the WebAppDeploy would help, but it seems that order doesn't matter here. Markus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: mod_webapp or perhaps apache question
On Sat, 3 Aug 2002, Markus Bengts wrote: On Fri, 2 Aug 2002 [EMAIL PROTECTED] wrote: If webmail isn't a directory under qvdintra, then I don't see a problem. webmail is not under qvdintra. It is possible to use it like this with servlet/ or _/ or some other extra string in the url-path to every servlet. I just don't want to have something extra in the path to servlets. I may be wrong, but I'm not sure you're going to be able to do that. Because when you give WebAppDeploy the URL pattern /, you're effectively telling it that Apache should pass everything to Tomcat. I'm not sure you can make it do everything but this one thing. You might have to put something there, like /qvdintra (and then that has to be included in every URL). One thing, my understanding is that when you use mod_webapp to connect Apache to Tomcat, it passes every URL under the specified URL (in a WebAppDeploy) to Tomcat, even static content. But supposedly with mod_jk you have finer grain control, and it allows you to have Apache handle static content within a Tomcat context (although I'm not sure I fully understand how it does that, because there are things for which it isn't obvious from just the URL whether it's static or dynamic content). Anyway, someone suggested using mod_jk instead of mod_webapp. You might try that to see if it allows you to do what you want. On Fri, 2 Aug 2002 [EMAIL PROTECTED] wrote: What's the directory layout? Is qvdintra a directory? The WebAppDeploy syntax is: WebAppDeploy application_name connection_name url_path qvdintra is an application name which is the same as the directory present under my webapps directory. The connection works fine. My problem is that the webmail should be served by apache and everything else by tomcat. I want to have: WebAppDeploy qvdintra defConn / But still I need to have apache serving urls that have /webmail in the beginning of the path. (The webmail application is written in php.) In my apache conf I have these lines for a virtual host: # Alias /webmail /home/qvd/www/webmail # Tomcat configurations IfModule mod_webapp.c WebAppDeploy qvdintra defConn /_ /IfModule I don't want to have _/ in my servlet urls, but if I remove '_' my webmail stops working. I want to send everything else to tomcat except for urls with /webmail in the beginning of the path. Can anyone help me with this configuration? I thought the alias before the WebAppDeploy would help, but it seems that order doesn't matter here. Markus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Milt Epstein Research Programmer Systems and Technology Services (STS) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]