RE: port number
Is that even possible? Port 80 is the default HTTP port. Port 443 is the default HTTPS port. That said, Microsoft Internet Information Server, Apache web server and most servers default to port 80 which makes sense since it is for HTTP. I've tried myself to attach Tomcat to port 80 along with Apache Web server and I get severe errors in my Tomcat log file (along with it not working). I don't think this is recommended even if it is possible. I wonder about reliability and security issues. If someone can take down that port then you lose everything... -Original Message- From: t.n.a. [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 10:55 AM To: Tomcat Users List Subject: port number Hi everyone, I host applications on a machine where both apache and tomcat are running. I access apache at port 80 and tomcat at 8080. Is it possible (using the tomcat apache connection, or some other way) to access both at port 80? I ask because of firewall issues: port 80 seems to be the Holy Grail of accessibility: everything else depends on the local firewall configuration. Tomislav - 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: port number
I think what he is saying is sending the requests to the AJP12 and AJP13 workers. Look in your Tomcat workers.properties file and make sure you load the mod_jk in your Apache httpd config file. -Original Message- From: Viorel Dragomir [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 12:00 PM To: Tomcat Users List Subject: Re: port number Look for mod_jk how to. It's a connector that can send .jsp or servlets requests from apache to tomcat. Viorel Dragomir . .. --- - Original Message - From: t.n.a. To: Tomcat Users List Sent: Wednesday, April 13, 2005 16:54 Subject: port number Hi everyone, I host applications on a machine where both apache and tomcat are running. I access apache at port 80 and tomcat at 8080. Is it possible (using the tomcat apache connection, or some other way) to access both at port 80? I ask because of firewall issues: port 80 seems to be the Holy Grail of accessibility: everything else depends on the local firewall configuration. Tomislav - 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: port number
So then it is possible to have both on port 80? G says no way... No that's not possible. Only one server for one port... You could try to forward incomming connections from apache to tomcat. For that there is a plug in on tomcats web site... G -Original Message- From: Peter Crowther [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 11:10 AM To: Tomcat Users List Subject: RE: port number From: t.n.a. [mailto:[EMAIL PROTECTED] I host applications on a machine where both apache and tomcat are running. I access apache at port 80 and tomcat at 8080. Is it possible (using the tomcat apache connection, or some other way) to access both at port 80? Yes, but you'll have to decide under which part of your Apache site you'll show your Tomcat pages. The trick is to install mod_jk to connect from Apache to Tomcat (and make sure you've got a JK connector enabled in Tomcat). Then you can map part or all of the Tomcat URL space into a virtual directory under Apache. JK is independent of Tomcat's HTTP connector so, if you wish, you can even remove Tomcat's connector on port 8080 once you've done this - the Apache = JK = Tomcat route becomes the only route through which you can access Tomcat. - Peter - 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: Any comments on the reliability of Tomcat 5.5's HTTPS implementation?
I don't have specific details on the reliability issue but here are some comments made lately on this issue. Some think that Apache web server + Tomcat is really not needed. Unnecessary complexity, etc. It depends on what you are doing (running eBay on one side of the spectrum versus a single server with one small web app running on it). My opinion is for you to go for it and use Tomcat and add just what you need. Take a look at the link: http://cvs.apache.org/~woolfel/benchmark_summary.doc I have Apache Web server + Tomcat + mod_jk + mod_proxy + SSL running right now. Yes, it takes time and the more you add, the more headaches are there for sure. I might end up the same as you - just Tomcat and what I absolutely need. The old setup here has everything thrown at it (Oracle Application Server + Apache Web Server + Tomat + mod_jk + SSL, etc) and I think for what we are doing it is not needed. (See emails below for other opinions) Good luck, Sal From: Magnotta, Salvatore [mailto:[EMAIL PROTECTED] Subject: Tomcat + Apache Web Server Question: How can I have both Apache and Tomcat running on a Windows platform using Internet Explorer and do the following: Before introducing that complexity, why are you using Apache httpd at all? Peter Lin's recent testing showed little performance improvement using httpd vs. Tomcat 5.5.7 for static content. See http://cvs.apache.org/~woolfel/benchmark_summary.doc for details. - Chuck Are you suggesting that we can drop apache and only use tomcat in some cases? Certainly. Think of the overhead being _added_ by passing a request through httpd just to get to Tomcat. If the vast majority of the requests are for static content and only very few for dynamic, then using httpd in front of Tomcat makes sense; but if a significant fraction of the requests are targeting JSPs or servlets, then standalone Tomcat 5.5 may well result in better overall response time. Front-ending a set of Tomcats with Apache httpd for load-balancing or redundancy is also a highly appropriate (and relatively inexpensive) approach. Consider the following Apache modules: mod_headers mod_expire mod_deflate I've never seen a web application that wouldn't benefit from one or all of these modules. And the performance improvements would likely more than outweigh any overhead. If Tomcat provides any of the functionality of mod_headers, mod_expire, or mod_deflate, it's news to me. So, why reinvent the wheel (e.g. w/ a filter) when this functionality is available in Apache? I'm still unconvinced that running Apache in front of Tomcat isn't almost always a good thing. But I'm listening if someone can convince me otherwise. Configuring Tomcat is a challenge. Configuring Tomcat + mod_jk + apache is even more of a challenge (see the number of posts on this list alone!). The chance of you dropping a security screw-up into the more complicated setup is much higher than the simple set up.[*] Unless you really need the performance benefit of the above modules - and many many people don't - why go to the extra setup effort, and extra risk of making mistakes? My benchmarks showed that on cheap new hardware (P4, 2.5Ghz) that apache and tomcat were both capable at webserving at a speed that would cost me a fortune in bandwidth and any delay would be in the application code, not the performance of the webserver. My tomcat install survived a direct slashdot without issue, so all I care about is manageability, performance (for me) is a solved problem. Of course, if you're trying to run something the size of ebay it's a little different. Pete Every web application can benefit from compressing and caching static resources. It decreases the number of connections your server must handle. To not have caching, I think, is to ignore a best practice. Or at the very least ignore the opportunity to improve the user experience with faster response times. It's not that hard to integrate Apache w/ Tomcat, and I still benefits to this approach that standalone Tomcat does not offer. Well the Coyote connector for one definitely has compression available and compresses content nicely, even dynamic content. I'm not sure of the specifics of the caching mechanisms used internally to Tomcat but it achieves caching nicely giving 304 not modified responses where applicable and often the browser will cache the static content so a request isn't even made. Regards, -- Jason Bainbridge -Original Message- From: Richard Mundell [mailto:[EMAIL PROTECTED] Sent: Friday, April 08, 2005 10:58 AM To: tomcat-user@jakarta.apache.org Subject: Any comments on the reliability of Tomcat 5.5's HTTPS implementation? Hi there, I'm running an application with the following configuration: Servlets on Tomcat 4.1 -- mod_jk -- Apache 2.x with mod_ssl -- [HTTPS] -- Internet Explorer 6 I've experienced continual problems with intermittent page and image loading problems which seems
RE: Windows Installation - Tomcat Start and Stop in the Start menu
Ramesh, There are 2 ways to download Tomcat for Windows -- a zip file (.zip) and an installation file (.exe). You can do either but use the installation file. It will install Tomcat on your machine and add it to the task bar on the right with a little feather and either a green right arrow (started) or a red dot (stopped). It will also install shortcuts and icons in Start-Programs-Tomcat 5.5. Go into your services list under Control Panel - Administration Tools and you will see the Apache Tomcat service - mine says Apache Tomcat - Apache Tomcat 5.5.7 Server - http://jakarta.apache.org/tomcat/. You can start and stop it like any other service with the Start and Stop buttons provided in Services. You can even do it from the Command prompt -- issue NET START and NET STOP commands (typical Windows service stuff). If you need help with that search the web or look under Windows Help. When you install Tomcat, it will ask you some basic questions to get you up and going. I don't believe it starts the service automatically but if you follow what I have above it will be easy. When I click the Apache Tomcat feather in the task bar area on the right with my left mouse button, I don't get a pop up window to start or stop -- I get a Tomcat Properties dialog box where I need to click the Start or stop button (it is the Services dialog box that pops up). You need to click it with the right mouse button to get a context menu for start, stop, configure, about and exit. The default directory installation is at C:\Program Files\Apache Software Foundation\Tomcat 5.5. Go under the logs directory and you will find the log info. Go under conf directory and will need to look at the files: 1. server.xml 2. context.xml 3. web.xml 4. workers.properties (this is especially needed when you have to integrate Apache Tomcat with the Apache Web Server) For Apache HTTP Server (Web server) I get an icon on the right like Tomcat but I can use my left mouse button to start and stop that service. I am using both on a Windows 2000 Server machine and know through experience how difficult they made it to connect the latest Apache Web Server and Tomcat tools, expecially when you have to use mod_jk (well documented) and mod_proxy (was not documented as well and that is why I had to join this list). Go to this link -- it will help you tremendously: http://www.coreservlets.com/Apache-Tomcat-Tutorial/ Good luck, Sal Magnotta Hi, I have downloaded Tomcat 5 on my Windows 2000 machine. I see neither Start Tomcat nor Stop Tomcat programs in the start menu. In case I make any changes to my class files that require the restart of the server, how do I do so? Also, where can I see the logs of my application? Using Tomcat 4.1, I could restart Tomcat by selecting Start Tomcat program from the start menu which also used to display the logs of the application.. Thanks, Ramesh -Original Message- From: Darryl Wilburn [mailto:[EMAIL PROTECTED] Sent: Friday, April 08, 2005 7:30 AM To: Tomcat Users List Subject: Re: Windows Installation - Tomcat Start and Stop in the Start menu I'm a little new at this, but I downloaded the binaries for 5.5.7 and ran through the setup program which installed Apache Tomcat as a service in Windows. In that case, you stop and start it just as you would any other service. Hope this helps, Darryl Malvey, Ramesh \(GE Consumer Industrial\) [EMAIL PROTECTED] 04/08/2005 07:17 AM Please respond to Tomcat Users List tomcat-user@jakarta.apache.org To tomcat-user@jakarta.apache.org cc Subject Windows Installation - Tomcat Start and Stop in the Start menu Hi, I have downloaded Tomcat 5 on my Windows 2000 machine. I see neither Start Tomcat nor Stop Tomcat programs in the start menu. In case I make any changes to my class files that require the restart of the server, how do I do so? Also, where can I see the logs of my application? Using Tomcat 4.1, I could restart Tomcat by selecting Start Tomcat program from the start menu which also used to display the logs of the application.. Thanks, Ramesh - 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]
Apache Web server + Tomcat + SSL
Hi list, I have integrated the Apache web server and Tomcat on a Win2K PC with the latest versions of software. I have also successfully used OpenSSL to create my own CA (certificate authority) and create a keystore through keytool so that I can use SSL with Tomcat. On the client side I needed to accept and install two certificates -- one for my home-made certificate authority (the root certificate mydomain.com), and then another for the actual server certificate (mypc.mydomain.com). This seems like a pain as I had to install both certificates in the client Trusted Root Certificate keystore in order for the certificate dialog box not to pop up on the client machine when accessing the server URL through https. Is there a way so that the client side only has to install one of the certificates? Do I have to add SSL to the Apache web server side through mod_ssl --- is this legal as I have been told that Apache-SSL and Apache + mod_ssl are not legal everywhere in the world -- here in the US for example? Thanks, Sal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat + Apache Web Server
Hello, I'm new with Apache products and this is my first post. Please see the background info - it explains what versions I have and what I have done. Question: How can I have both Apache and Tomcat running on a Windows platform using Internet Explorer and do the following: http://localhost/servlet/HelloServlet (no Tomcat default port 8080) instead of http://localhost:8080/servlet/HelloServlet ? If I try to do http://localhost/servlet/HelloServlet I get an internal server error. It cannot find where this is located. Apache is trying to find it at C:\Documents and Settings\username\My Documents\My Website\localhost\www\servlet\HelloServlet instead of C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ROOT\WEB-INF\classes\HelloServlet - Background: Apache 2.0.53 (Port 80 - default) Tomcat 5.5.7(Port 8080 - default) mod_jk 1.2.8 (to connect the two together) Operating System: Win 2K Server I installed both Apache and Tomcat as Windows Services using the install programs that are available. I am able to access http://localhost and http://localhost:80 (Apache Web server page comes up) I am able to access http://localhost:8080 (Tomcat page comes up) I am able to create basic servlets and run them. For example, http://localhost:8080/servlet/HelloServlet I am able to access this host from another machine running Win XP. I can bring up the Apache and Tomcat home pages on that PC's browser, and the servlets. I have placed the following in my httpd.conf file: LoadModule jk_module modules/mod_jk.so JkWorkersFile C:/Program Files/Apache Software Foundation/Tomcat 5.5/conf/workers.properties JkLogFile C:/Program Files/Apache Group/Apache2/logs/mod_jk.log JkLogLevel info JkLogStampFormat [%a %b %d %H:%M:%S %Y] I have the workers.properties file also set up: worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=2 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp12, ajp13 Thank you, Sal
RE: Tomcat + Apache Web Server
Well, it is a project here at work and that is what the requirements are for this project. I'll do more research and see if I can change some minds... Is the only solution using a reverse proxy server for example to redirect the client requests? e.g. ProxyPass /servlet http://localhost:8080/servlet or something like this ? ...Thanks for the link. -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 05, 2005 5:58 PM To: Tomcat Users List Subject: RE: Tomcat + Apache Web Server From: Magnotta, Salvatore [mailto:[EMAIL PROTECTED] Subject: Tomcat + Apache Web Server Question: How can I have both Apache and Tomcat running on a Windows platform using Internet Explorer and do the following: Before introducing that complexity, why are you using Apache httpd at all? Peter Lin's recent testing showed little performance improvement using httpd vs. Tomcat 5.5.7 for static content. See http://cvs.apache.org/~woolfel/benchmark_summary.doc for details. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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: Tomcat + Apache Web Server
The solution is: ProxyRequests Off ProxyPass /servlet http://localhost:8080/servlet/ Thanks Jorge! -Original Message- From: Jorge Davila [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 05, 2005 4:57 PM To: Tomcat Users List Subject: Re: Tomcat + Apache Web Server You most configure mod_proxy in apache to get the configuration desired. The idea is that apache receive the request and if the request is for tomcat apache send the request at the respective servlet. http://httpd.apache.org/docs-2.0/mod/mod_proxy.html Best regards, Jorge Dvila. El mar, 05-04-2005 a las 16:50 -0400, Magnotta, Salvatore escribi: Hello, I'm new with Apache products and this is my first post. Please see the background info - it explains what versions I have and what I have done. Question: How can I have both Apache and Tomcat running on a Windows platform using Internet Explorer and do the following: http://localhost/servlet/HelloServlet (no Tomcat default port 8080) instead of http://localhost:8080/servlet/HelloServlet ? If I try to do http://localhost/servlet/HelloServlet I get an internal server error. It cannot find where this is located. Apache is trying to find it at C:\Documents and Settings\username\My Documents\My Website\localhost\www\servlet\HelloServlet instead of C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ROOT\WEB-INF\classes\HelloServlet - Background: Apache 2.0.53 (Port 80 - default) Tomcat 5.5.7(Port 8080 - default) mod_jk 1.2.8 (to connect the two together) Operating System: Win 2K Server I installed both Apache and Tomcat as Windows Services using the install programs that are available. I am able to access http://localhost and http://localhost:80 (Apache Web server page comes up) I am able to access http://localhost:8080 (Tomcat page comes up) I am able to create basic servlets and run them. For example, http://localhost:8080/servlet/HelloServlet I am able to access this host from another machine running Win XP. I can bring up the Apache and Tomcat home pages on that PC's browser, and the servlets. I have placed the following in my httpd.conf file: LoadModule jk_module modules/mod_jk.so JkWorkersFile C:/Program Files/Apache Software Foundation/Tomcat 5.5/conf/workers.properties JkLogFile C:/Program Files/Apache Group/Apache2/logs/mod_jk.log JkLogLevel info JkLogStampFormat [%a %b %d %H:%M:%S %Y] I have the workers.properties file also set up: worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=2 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp12, ajp13 Thank you, Sal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Use in-process instead of out of process workers
Hi List, Should I run Tomcat in-process instead of out-of-process? Besides speed are there any other advantages? Any disadvantages to in-process? I guess I am asking when would you run it in-process versus out-of-process... Thanks, Sal