Re: configuring tomcat7 with apache 2.2.22
In this scenario, both tomcat and apache are running on the same workstation (doesn't have to be, just give the ip of the tomcat server in the script), and access is to intranet users only. Steve Spence, KK4HFJ http://arduinotronics.blogspot.com http://www.essnmag.com > ---Original Message--- > From: Jan Vávra > To: Tomcat Users List > Subject: Re: configuring tomcat7 with apache 2.2.22 > Sent: Mar 15 '13 09:32 > > In this situation are both server exposed - Apache Server and Apache > Tomcat. It can work. > > When you use reverse proxy only the Apache Server is exposed. So > configuring a ssl certificate is only done once. > On client computer/network there could be allowed only the standard http > port 80 and not 8080. > > Depends on situation ... > Jan. > > > > > Thanks to some advice on this forum, and a lot of independent study and > experimentation, I have a php app on > > apache (localhost:80) pulling in a database driven bar code from a > IDAutomation Servlet running on tomcat > > (localhost:8080). > > > > Looks like this - > > > > $bcode = $row['Bar Code'] ; > > $beginurl = " src='http://localhost:8080/examples/servlet/LinearServlet?BARCODE=";; > > $endurl = "&BAR_HEIGHT=.5&S=UPCA'>"; > > echo $beginurl . $bcode . $endurl; > > > > > > Steve Spence, KK4HFJ > > http://arduinotronics.blogspot.com > > http://www.essnmag.com > > > > > >> ---Original Message--- > >> From: Jan Vávra > >> To: Tomcat Users List > >> Subject: Re: configyuring tomcat7 with apache 2.2.22 > >> Sent: Mar 15 '13 07:43 > >> > >> Hello, > >> I take care about an app that is a combination of Apache Server+php > >> Drupal app and Apache Tomcat jsp app. > >> Apache Server listens on the ports 80/443 and requests are reverse > >> proxied to Apache Tomcat. > >> > >> Let's say that the tomcat app resides on/testca > >> The apache server config will be > >> > >> ProxyRequests Off > >> ProxyPass /testca ajp://127.0.0.1:9081/testca > >> ProxyPassReverse /testca ajp://127.0.0.1:9081/testca > >> > >> > >>Order Deny,Allow > >>Deny from All > >> > >> > >> > >>Order Deny,Allow > >>Allow from All > >> > >> > >> and check if ajp module is loaded: > >> LoadModule proxy_ajp_module modules/mod_proxy_ajp.so > >> > >> In the Apache Tomcat's server.xml change ajp port to 9081 > >> > >> > >> > >> On WinXP there should be no problem. I personally develop on Win 7, > >> production is Linux. > >> > >> Jan. > >> > >> > >> > Although not a newbie to building websites in html and php, and > physical computing in C/C++, I'm having a > > dickens of a > >> > time understanding the documentation of Integrating Tomcat 7 with my > existing Apache 2.2.22 on WinXP > > (company > >> > supplied development pc, nothing I can do about that). Can I get a > bit of handholding please? > >> > > >> > I'm trying to evaluate a java servlet that requires tomcat. > >> > > >> > > >> > Steve Spence, KK4HFJ > >> > http://arduinotronics.blogspot.com > >> > http://www.essnmag.com > >> > > >> > - > >> > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > >> > For additional commands, e-mail: users-h...@tomcat.apache.org > >> > > >> > >> > >> - > >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > >> For additional commands, e-mail: users-h...@tomcat.apache.org > >> > >> > > - > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > > For additional commands, e-mail: users-h...@tomcat.apache.org > > > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: configuring tomcat7 with apache 2.2.22
In this situation are both server exposed - Apache Server and Apache Tomcat. It can work. When you use reverse proxy only the Apache Server is exposed. So configuring a ssl certificate is only done once. On client computer/network there could be allowed only the standard http port 80 and not 8080. Depends on situation ... Jan. Thanks to some advice on this forum, and a lot of independent study and experimentation, I have a php app on apache (localhost:80) pulling in a database driven bar code from a IDAutomation Servlet running on tomcat (localhost:8080). Looks like this - $bcode = $row['Bar Code'] ; $beginurl = ""; echo $beginurl . $bcode . $endurl; Steve Spence, KK4HFJ http://arduinotronics.blogspot.com http://www.essnmag.com ---Original Message--- From: Jan Vávra To: Tomcat Users List Subject: Re: configyuring tomcat7 with apache 2.2.22 Sent: Mar 15 '13 07:43 Hello, I take care about an app that is a combination of Apache Server+php Drupal app and Apache Tomcat jsp app. Apache Server listens on the ports 80/443 and requests are reverse proxied to Apache Tomcat. Let's say that the tomcat app resides on/testca The apache server config will be ProxyRequests Off ProxyPass /testca ajp://127.0.0.1:9081/testca ProxyPassReverse /testca ajp://127.0.0.1:9081/testca Order Deny,Allow Deny from All Order Deny,Allow Allow from All and check if ajp module is loaded: LoadModule proxy_ajp_module modules/mod_proxy_ajp.so In the Apache Tomcat's server.xml change ajp port to 9081 On WinXP there should be no problem. I personally develop on Win 7, production is Linux. Jan. > Although not a newbie to building websites in html and php, and physical computing in C/C++, I'm having a dickens of a > time understanding the documentation of Integrating Tomcat 7 with my existing Apache 2.2.22 on WinXP (company > supplied development pc, nothing I can do about that). Can I get a bit of handholding please? > > I'm trying to evaluate a java servlet that requires tomcat. > > > Steve Spence, KK4HFJ > http://arduinotronics.blogspot.com > http://www.essnmag.com > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: configuring tomcat7 with apache 2.2.22
Thanks to some advice on this forum, and a lot of independent study and experimentation, I have a php app on apache (localhost:80) pulling in a database driven bar code from a IDAutomation Servlet running on tomcat (localhost:8080). Looks like this - $bcode = $row['Bar Code'] ; $beginurl = ""; echo $beginurl . $bcode . $endurl; Steve Spence, KK4HFJ http://arduinotronics.blogspot.com http://www.essnmag.com > ---Original Message--- > From: Jan Vávra > To: Tomcat Users List > Subject: Re: configuring tomcat7 with apache 2.2.22 > Sent: Mar 15 '13 07:43 > > Hello, > I take care about an app that is a combination of Apache Server+php > Drupal app and Apache Tomcat jsp app. > Apache Server listens on the ports 80/443 and requests are reverse > proxied to Apache Tomcat. > > Let's say that the tomcat app resides on/testca > The apache server config will be > > ProxyRequests Off > ProxyPass /testca ajp://127.0.0.1:9081/testca > ProxyPassReverse /testca ajp://127.0.0.1:9081/testca > > > Order Deny,Allow > Deny from All > > > > Order Deny,Allow > Allow from All > > > and check if ajp module is loaded: > LoadModule proxy_ajp_module modules/mod_proxy_ajp.so > > In the Apache Tomcat's server.xml change ajp port to 9081 > > > > On WinXP there should be no problem. I personally develop on Win 7, > production is Linux. > > Jan. > > > > Although not a newbie to building websites in html and php, and physical > computing in C/C++, I'm having a dickens of a > > time understanding the documentation of Integrating Tomcat 7 with my > existing Apache 2.2.22 on WinXP (company > > supplied development pc, nothing I can do about that). Can I get a bit of > handholding please? > > > > I'm trying to evaluate a java servlet that requires tomcat. > > > > > > Steve Spence, KK4HFJ > > http://arduinotronics.blogspot.com > > http://www.essnmag.com > > > > - > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > > For additional commands, e-mail: users-h...@tomcat.apache.org > > > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: configuring tomcat7 with apache 2.2.22
Hello, I take care about an app that is a combination of Apache Server+php Drupal app and Apache Tomcat jsp app. Apache Server listens on the ports 80/443 and requests are reverse proxied to Apache Tomcat. Let's say that the tomcat app resides on/testca The apache server config will be ProxyRequests Off ProxyPass /testca ajp://127.0.0.1:9081/testca ProxyPassReverse /testca ajp://127.0.0.1:9081/testca Order Deny,Allow Deny from All Order Deny,Allow Allow from All and check if ajp module is loaded: LoadModule proxy_ajp_module modules/mod_proxy_ajp.so In the Apache Tomcat's server.xml change ajp port to 9081 On WinXP there should be no problem. I personally develop on Win 7, production is Linux. Jan. Although not a newbie to building websites in html and php, and physical computing in C/C++, I'm having a dickens of a time understanding the documentation of Integrating Tomcat 7 with my existing Apache 2.2.22 on WinXP (company supplied development pc, nothing I can do about that). Can I get a bit of handholding please? I'm trying to evaluate a java servlet that requires tomcat. Steve Spence, KK4HFJ http://arduinotronics.blogspot.com http://www.essnmag.com - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: configuring tomcat7 with apache 2.2.22
> -Original Message- > From: so...@essnmag.com [mailto:so...@essnmag.com] > Sent: Thursday, March 14, 2013 4:43 PM > To: Tomcat Users List > Subject: Re: configuring tomcat7 with apache 2.2.22 > > That would have been good to hear earlier, as I have now killed tomcat > somehow. I'll see if I can get tomcat back up, and try your advice. > > > Steve Spence, KK4HFJ > http://arduinotronics.blogspot.com > http://www.essnmag.com > If you have a connector configured for ajp_13 on port 8009, try commenting out the connector in server.xml, and then retry starting Tomcat. Remember you need to use the notation for commenting out XML and you need to comment out the whole connector, not just the first line (see other sections of the file that have comments to see how to apply the syntax). Jeffrey Harris This e-mail and any attachments are intended only for the use of the addressee(s) named herein and may contain proprietary information. If you are not the intended recipient of this e-mail or believe that you received this email in error, please take immediate action to notify the sender of the apparent error by reply e-mail; permanently delete the e-mail and any attachments from your computer; and do not disseminate, distribute, use, or copy this message and any attachments.
Re: configuring tomcat7 with apache 2.2.22
That would have been good to hear earlier, as I have now killed tomcat somehow. I'll see if I can get tomcat back up, and try your advice. Steve Spence, KK4HFJ http://arduinotronics.blogspot.com http://www.essnmag.com > ---Original Message--- > From: André Warnier > To: Tomcat Users List > Subject: Re: configuring tomcat7 with apache 2.2.22 > Sent: Mar 14 '13 16:40 > > so...@essnmag.com wrote: > > Although not a newbie to building websites in html and php, and physical > computing in C/C++, I'm having a dickens of a > > time understanding the documentation of Integrating Tomcat 7 with my > existing Apache 2.2.22 on WinXP (company > > supplied development pc, nothing I can do about that). Can I get a bit of > handholding please? > > > > I'm trying to evaluate a java servlet that requires tomcat. > > > > Actually, if the purpose is purely to evaluate a java servlet, you do not > really need > Apache httpd in front. Tomcat will act as a stand-alone webserver just > fine, and will > provide access to your servlet. > > The simplest under Windows XP : > - from the tomcat website tomcat.apache.org, download tomcat (the "Windows > service > installer" version is easiest in this case). > - install it > - check if the Tomcat service is running. If it is, stop it (for the next > step). > - under the top directory of that installation, find the "webapps" > sub-directory. Copy > your servlet there (if it comes as a .war file) (*). > - start tomcat (the service) > - point your browser at : http://localhost:8080/(name of your servlet) > > and there you go. > > Then once that works, you can think about configuring Apache as a front-end > to tomcat and > try that. > > > (*) if your servlet (actually, I suppose "webapp" would be a better name) > does not come > packaged as a .war file, then : > - unzip or copy it in some new directory, to see what it looks like > - it should be a bunch of files under some top directory (say "myApp") > - copy that whole directory and all its files (including the top directory > "myApp") under > the "webapps" directory of Tomcat, so that you have : > C:\tomcatx.y\webapps\myApp > - start tomcat and proceed like above > > > > > > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: configuring tomcat7 with apache 2.2.22
so...@essnmag.com wrote: Although not a newbie to building websites in html and php, and physical computing in C/C++, I'm having a dickens of a time understanding the documentation of Integrating Tomcat 7 with my existing Apache 2.2.22 on WinXP (company supplied development pc, nothing I can do about that). Can I get a bit of handholding please? I'm trying to evaluate a java servlet that requires tomcat. Actually, if the purpose is purely to evaluate a java servlet, you do not really need Apache httpd in front. Tomcat will act as a stand-alone webserver just fine, and will provide access to your servlet. The simplest under Windows XP : - from the tomcat website tomcat.apache.org, download tomcat (the "Windows service installer" version is easiest in this case). - install it - check if the Tomcat service is running. If it is, stop it (for the next step). - under the top directory of that installation, find the "webapps" sub-directory. Copy your servlet there (if it comes as a .war file) (*). - start tomcat (the service) - point your browser at : http://localhost:8080/(name of your servlet) and there you go. Then once that works, you can think about configuring Apache as a front-end to tomcat and try that. (*) if your servlet (actually, I suppose "webapp" would be a better name) does not come packaged as a .war file, then : - unzip or copy it in some new directory, to see what it looks like - it should be a bunch of files under some top directory (say "myApp") - copy that whole directory and all its files (including the top directory "myApp") under the "webapps" directory of Tomcat, so that you have : C:\tomcatx.y\webapps\myApp - start tomcat and proceed like above - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: configuring tomcat7 with apache 2.2.22
> -Original Message- > From: so...@essnmag.com [mailto:so...@essnmag.com] > Sent: Thursday, March 14, 2013 12:51 PM > To: users@tomcat.apache.org > Subject: configuring tomcat7 with apache 2.2.22 > > Although not a newbie to building websites in html and php, and > physical computing in C/C++, I'm having a dickens of a time > understanding the documentation of Integrating Tomcat 7 with my > existing Apache 2.2.22 on WinXP (company supplied development pc, > nothing I can do about that). Can I get a bit of handholding please? > > I'm trying to evaluate a java servlet that requires tomcat. > > > Steve Spence, KK4HFJ > http://arduinotronics.blogspot.com > http://www.essnmag.com > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org You can install the mod_jk connector on Apache to provide ajp_13 protocol support and pass connection requests to Tomcat via Apache (for example, apache.mycompany.com/myTomcatApp would forward the request to Tomcat for processing as if the user had connected directly to Tomcat). You need to set up a workers.properties file on Apache with the connection information and JKMap settings to tell Apache which URI to forward to Tomcat, and which servers to forward to. You need to enable the AJP_13 connector (usually on port 8009) in Tomcat to receive the forwarded requests from Apache. The default parameters are in the server.xml, and usually commented out. Jeffrey Harris This e-mail and any attachments are intended only for the use of the addressee(s) named herein and may contain proprietary information. If you are not the intended recipient of this e-mail or believe that you received this email in error, please take immediate action to notify the sender of the apparent error by reply e-mail; permanently delete the e-mail and any attachments from your computer; and do not disseminate, distribute, use, or copy this message and any attachments.