Re: mod_webapp and *.shtml not working
Joseph, I read with interest your message below. I'm migrating from Tomcat 3.2.x to 4.0.3 and the behavior of Warp is a bit confusing to me. You said that you are 95% done with a document describing how to integrate Apache and Tomcat. Do you mind if I see this? I would be happy to offer feedback and help with the document if you are interested. Duane ps - I tried to email directly to your hotmail account but it reports that the quota is exceeded. On Thursday, April 11, 2002, at 01:40 PM, Joseph Molnar wrote: I haven't tried this, but I think it may work. I have a document I will be releasing today that explains some of this: a) Apache 'ignores' all Directory directives when a WebAppDeploy statement takes over the root. b) Apache doesn't ignore Location directives. c) SetHandler's in the Location directives work fine. My suggestion is to put a Location (or Location Match) directive on on the root. Then put a Files directive (if you only want to match files) to match .shtml files. THEN do a SetHandler to 'server-parsed'. What I am not 100% sure of at this point, since I haven't had an opportunity to try, is what actual directory location it will attempt to find the files at. Naturally I would presume it would be based off of the DocumentRoot, but again, I am not 100% sure. Let me know if that works, and when I have a moment I will attempt to try since it will be helpful for the document I wrote up explaining how to install Tomcat on Apache via WARP (it is 95% done at this point). Joseph Molnar http://www.codesta.com/ - Original Message - From: Catalin Mihailescu [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, April 11, 2002 10:28 AM Subject: mod_webapp and *.shtml not working Hello, I'm using a RedHat 7.0 box, Apache/1.3.22, Tomcat 4.0.2 and a site site-name that use SSI. I cannot make them to work together (Apache to serve *.shtml and Tomcat serve JUST *.jsp). Can you please tell me what I'm doing wrong and what else should I do to make it work? My server.xml looks like: __ --- Server port=8005 shutdown=SHUTDOWN debug=0 !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=10 enableLookups=false appBase=webapps acceptCount=5 debug=0/ Engine className=org.apache.catalina.connector.warp.WarpEngine name=testing debug=0 /Engine /Service /Server _ My httpd.conf looks like: _ --- LoadModule webapp_module libexec/mod_webapp.so AddModule mod_webapp.c --- DirectoryIndex index.shtml index.html index.htm index.php index.php4 index.jsp --- AddIcon /icons/layout.gif .html .shtml .htm .pdf --- AddType text/html .shtml AddHandler server-parsed .shtml --- WebAppConnection warpConnection warp localhost:8008 WebAppInfo /webapp-info --- VirtualHost 192.168.2.15:80 DocumentRoot /web/site-name/htdocs ServerName 192.168.2.15 LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-agent}i\ TransferLog /web/site-name/logs/access.log ErrorLog /web/site-name/logs/error.log WebAppDeploy biocapital-java warpConnection / /VirtualHost mod_include, mod_mime, mod_cgi are also included and enabled for Apache I also have: $CATALINA_HOME/webapps/site-name - /web/site-name/htdocs The result is that Apache is complaining that /index.shtml was not found, but all my *.jsp files are properly handled by Tomcat. If I change WebAppDeploy biocapital-java warpConnection / to look like WebAppDeploy biocapital-java warpConnection /something Apache is not complaining, but I'll be no longer capable to read my *.jsp files. Also, if instead *.shtml I use html (other site) in the same setup, everything goes just fine. Can you help, please? Catalin -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: mod_webapp and *.shtml not working
Let's try this: Assuming you have your jsps under the webapps/site-name folder and shtml under the same folder and 192.168.2.15 maps to some-domain-name.com Your server.xml should look like this: Host name=some-domain-name.com debug=0 appBase=webapps unpackWARs =true Context path= docBase=site-name debug=0 reloadable=true crossContext=true then you Virtual Host block should looks like: VirtualHost 192.168.2.15:80 DocumentRoot $CATALINA_HOME/webapps/site-name ServerName some-domain-name.com LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-agent}i\ TransferLog /web/site-name/logs/access.log ErrorLog /web/site-name/logs/error.log WebAppDeploy _ warpConnection / /VirtualHost Note: replace the $CATALINA_HOME in the virtual host block with the actual directory path. Your URL should now be: http://some-domain-name.com/ RS Catalin Mihailescu [EMAIL PROTECTED] on 04/12/2002 12:51:40 PM Please respond to Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] cc: Subject: Re: mod_webapp and *.shtml not working Hello, OK let me try and get this right: When you add this statement WebAppDeploy site-name warpConnection /something, does Apache parse the .shtml files and Tomcat doesn't execute the jsp's? That's right. And when you do this: WebAppDeploy site-name warpConnection /, does Apache say it cannot find the index.shtml file, but tomcat serves the jsps correctly? Exactly! Did you try adding a Context element for site-name? I'm assuming you have site-name under webapps. And the jsps are under site-name. Host name=site-name debug=0 appBase=webapps unpackWARs=true Context path= docBase=site-name debug=0 reloadable=true crossContext=true Yes, I did, but the result remain the same :-( Where are the .shtml files located? What's the URL that you use? The .shtml files are located under /web/site-name/htdocs/... The URL I'm using is http://192.168.2.15/ If I were you, I would break up the process and first get Apache to parse .shtml files and get Tomcat to serve the jsps right. Any suggestions on how do do this? And then add the virtual host block to connect Apache/Tomcat. RS Thank you for your reply, Best regards, Catalin Catalin Mihailescu [EMAIL PROTECTED] on 04/11/2002 12:28:10 PM Please respond to Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] cc: [EMAIL PROTECTED] Subject: mod_webapp and *.shtml not working Hello, I'm using a RedHat 7.0 box, Apache/1.3.22, Tomcat 4.0.2 and a site site-name that use SSI. I cannot make them to work together (Apache to serve *.shtml and Tomcat serve JUST *.jsp). Can you please tell me what I'm doing wrong and what else should I do to make it work? My server.xml looks like: __ --- Server port=8005 shutdown=SHUTDOWN debug=0 !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache Connector className =org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=10 enableLookups=false appBase=webapps acceptCount=5 debug=0/ Engine className=org.apache.catalina.connector.warp.WarpEngine name=testing debug=0 /Engine /Service /Server _ My httpd.conf looks like: _ --- LoadModule webapp_module libexec/mod_webapp.so AddModule mod_webapp.c --- DirectoryIndex index.shtml index.html index.htm index.php index.php4 index.jsp --- AddIcon /icons/layout.gif .html .shtml .htm .pdf --- AddType text/html .shtml AddHandler server-parsed .shtml --- WebAppConnection warpConnection warp localhost:8008 WebAppInfo /webapp-info --- VirtualHost 192.168.2.15:80 DocumentRoot /web/site-name/htdocs ServerName 192.168.2.15 LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-agent}i\ TransferLog /web/site-name/logs/access.log ErrorLog /web/site-name/logs/error.log WebAppDeploy site-name warpConnection / /VirtualHost mod_include, mod_mime, mod_cgi are also included and enabled for Apache I also have: $CATALINA_HOME/webapps/site-name - /web/site-name/htdocs The result is that Apache is complaining that /index.shtml was not found, but all my *.jsp files are properly handled by Tomcat. If I change WebAppDeploy site-name warpConnection / to look like WebAppDeploy site-name warpConnection /something Apache is not complaining, but I'll be no longer capable to read my *.jsp files. Also, if instead *.shtml I use html (other site) in the same setup, everything goes just fine. Can you help, please? Catalin -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED
mod_webapp and *.shtml not working
Hello, I'm using a RedHat 7.0 box, Apache/1.3.22, Tomcat 4.0.2 and a site site-name that use SSI. I cannot make them to work together (Apache to serve *.shtml and Tomcat serve JUST *.jsp). Can you please tell me what I'm doing wrong and what else should I do to make it work? My server.xml looks like: __ --- Server port=8005 shutdown=SHUTDOWN debug=0 !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=10 enableLookups=false appBase=webapps acceptCount=5 debug=0/ Engine className=org.apache.catalina.connector.warp.WarpEngine name=testing debug=0 /Engine /Service /Server _ My httpd.conf looks like: _ --- LoadModule webapp_module libexec/mod_webapp.so AddModule mod_webapp.c --- DirectoryIndex index.shtml index.html index.htm index.php index.php4 index.jsp --- AddIcon /icons/layout.gif .html .shtml .htm .pdf --- AddType text/html .shtml AddHandler server-parsed .shtml --- WebAppConnection warpConnection warp localhost:8008 WebAppInfo /webapp-info --- VirtualHost 192.168.2.15:80 DocumentRoot /web/site-name/htdocs ServerName 192.168.2.15 LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-agent}i\ TransferLog /web/site-name/logs/access.log ErrorLog /web/site-name/logs/error.log WebAppDeploy biocapital-java warpConnection / /VirtualHost mod_include, mod_mime, mod_cgi are also included and enabled for Apache I also have: $CATALINA_HOME/webapps/site-name - /web/site-name/htdocs The result is that Apache is complaining that /index.shtml was not found, but all my *.jsp files are properly handled by Tomcat. If I change WebAppDeploy biocapital-java warpConnection / to look like WebAppDeploy biocapital-java warpConnection /something Apache is not complaining, but I'll be no longer capable to read my *.jsp files. Also, if instead *.shtml I use html (other site) in the same setup, everything goes just fine. Can you help, please? Catalin
Re: mod_webapp and *.shtml not working
I haven't tried this, but I think it may work. I have a document I will be releasing today that explains some of this: a) Apache 'ignores' all Directory directives when a WebAppDeploy statement takes over the root. b) Apache doesn't ignore Location directives. c) SetHandler's in the Location directives work fine. My suggestion is to put a Location (or Location Match) directive on on the root. Then put a Files directive (if you only want to match files) to match .shtml files. THEN do a SetHandler to 'server-parsed'. What I am not 100% sure of at this point, since I haven't had an opportunity to try, is what actual directory location it will attempt to find the files at. Naturally I would presume it would be based off of the DocumentRoot, but again, I am not 100% sure. Let me know if that works, and when I have a moment I will attempt to try since it will be helpful for the document I wrote up explaining how to install Tomcat on Apache via WARP (it is 95% done at this point). Joseph Molnar http://www.codesta.com/ - Original Message - From: Catalin Mihailescu [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, April 11, 2002 10:28 AM Subject: mod_webapp and *.shtml not working Hello, I'm using a RedHat 7.0 box, Apache/1.3.22, Tomcat 4.0.2 and a site site-name that use SSI. I cannot make them to work together (Apache to serve *.shtml and Tomcat serve JUST *.jsp). Can you please tell me what I'm doing wrong and what else should I do to make it work? My server.xml looks like: __ --- Server port=8005 shutdown=SHUTDOWN debug=0 !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=10 enableLookups=false appBase=webapps acceptCount=5 debug=0/ Engine className=org.apache.catalina.connector.warp.WarpEngine name=testing debug=0 /Engine /Service /Server _ My httpd.conf looks like: _ --- LoadModule webapp_module libexec/mod_webapp.so AddModule mod_webapp.c --- DirectoryIndex index.shtml index.html index.htm index.php index.php4 index.jsp --- AddIcon /icons/layout.gif .html .shtml .htm .pdf --- AddType text/html .shtml AddHandler server-parsed .shtml --- WebAppConnection warpConnection warp localhost:8008 WebAppInfo /webapp-info --- VirtualHost 192.168.2.15:80 DocumentRoot /web/site-name/htdocs ServerName 192.168.2.15 LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-agent}i\ TransferLog /web/site-name/logs/access.log ErrorLog /web/site-name/logs/error.log WebAppDeploy biocapital-java warpConnection / /VirtualHost mod_include, mod_mime, mod_cgi are also included and enabled for Apache I also have: $CATALINA_HOME/webapps/site-name - /web/site-name/htdocs The result is that Apache is complaining that /index.shtml was not found, but all my *.jsp files are properly handled by Tomcat. If I change WebAppDeploy biocapital-java warpConnection / to look like WebAppDeploy biocapital-java warpConnection /something Apache is not complaining, but I'll be no longer capable to read my *.jsp files. Also, if instead *.shtml I use html (other site) in the same setup, everything goes just fine. Can you help, please? Catalin -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: mod_webapp and *.shtml not working
OK let me try and get this right: When you add this statement WebAppDeploy biocapital-java warpConnection /something, does Apache parse the .shtml files and Tomcat doesn't execute the jsp's? And when you do this: WebAppDeploy biocapital-java warpConnection /, does Apache say it cannot find the index.shtml file, but tomcat serves the jsps correctly? Did you try adding a Context element for biocapital-java? I'm assuming you have biocapital-java under webapps. And the jsps are under biocapital-java. Host name=site-name debug=0 appBase=webapps unpackWARs=true Context path= docBase=biocapital-java debug=0 reloadable=true crossContext=true Where are the .shtml files located? What's the URL that you use? If I were you, I would break up the process and first get Apache to parse .shtml files and get Tomcat to serve the jsps right. And then add the virtual host block to connect Apache/Tomcat. RS Catalin Mihailescu [EMAIL PROTECTED] on 04/11/2002 12:28:10 PM Please respond to Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] cc: [EMAIL PROTECTED] Subject: mod_webapp and *.shtml not working Hello, I'm using a RedHat 7.0 box, Apache/1.3.22, Tomcat 4.0.2 and a site site-name that use SSI. I cannot make them to work together (Apache to serve *.shtml and Tomcat serve JUST *.jsp). Can you please tell me what I'm doing wrong and what else should I do to make it work? My server.xml looks like: __ --- Server port=8005 shutdown=SHUTDOWN debug=0 !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=10 enableLookups=false appBase=webapps acceptCount=5 debug=0/ Engine className=org.apache.catalina.connector.warp.WarpEngine name=testing debug=0 /Engine /Service /Server _ My httpd.conf looks like: _ --- LoadModule webapp_module libexec/mod_webapp.so AddModule mod_webapp.c --- DirectoryIndex index.shtml index.html index.htm index.php index.php4 index.jsp --- AddIcon /icons/layout.gif .html .shtml .htm .pdf --- AddType text/html .shtml AddHandler server-parsed .shtml --- WebAppConnection warpConnection warp localhost:8008 WebAppInfo /webapp-info --- VirtualHost 192.168.2.15:80 DocumentRoot /web/site-name/htdocs ServerName 192.168.2.15 LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-agent}i\ TransferLog /web/site-name/logs/access.log ErrorLog /web/site-name/logs/error.log WebAppDeploy biocapital-java warpConnection / /VirtualHost mod_include, mod_mime, mod_cgi are also included and enabled for Apache I also have: $CATALINA_HOME/webapps/site-name - /web/site-name/htdocs The result is that Apache is complaining that /index.shtml was not found, but all my *.jsp files are properly handled by Tomcat. If I change WebAppDeploy biocapital-java warpConnection / to look like WebAppDeploy biocapital-java warpConnection /something Apache is not complaining, but I'll be no longer capable to read my *.jsp files. Also, if instead *.shtml I use html (other site) in the same setup, everything goes just fine. Can you help, please? Catalin -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]