2009/11/14 Henry Loke <fsl...@yahoo.com>: > I only install Apache Tomcat my Java webapp can work already. > So far I know what Apache can do, Apache Tomcat also can do. > The common different is Apache Tomcat is for Java program only > Apache can support multiple language webapp eg. php, Java , etc etc
By "Apache" I assume you mean "Apache httpd", the C-language web server that has modules such as mod_php and mod_perl for running scripts written in particular languages. > I a bit confuse the existence of Apache? > If my server only run java program, Can I install Apache Tomcat without > Apache? Yes. Apache Tomcat is a Java-language Web server that can also run Java servlets and Java Server Pages. You do not need to put another web server in front of it if you are only running those. > Can Tomcat configure in such: > abc.example.com > bcd.example.com > etc.example.com > When browsing the url? Yes. See http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html (that's for Tomcat 6.0.x). Replace "ren" and "stimpy" with "abc.example.com" and "bcd.example.com". > What the possibility we need to install Apache and Apache Tomcat together? You will need Apache httpd (hereafter just "httpd") and Apache Tomcat (hereafter just "Tomcat") if you need to run scripts in Java and another language like PHP on the same server, at the same time, efficiently. You would need to connect them together with one of mod_proxy, mod_proxy_ajp, or mod_jk. If you don't care about efficiency, you can run most of these scripts using Tomcat's CGI support, but it may not be fast. Many Internet sites still tell you that Tomcat is slow at serving static content such as html files, and you should put httpd in front for serving those files. This is not true for Tomcat 5.5.x and Tomcat 6.0.x. You will reach the limits of your network connection a long time before you reach the limits of Tomcat's ability to serve static files. I hope this helps. - Peter --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org