Apache HTTP + Tomcat + SSL
Hi guys, I have the following structure : Apache HTTP (Proxy) -- Tomcat . So, I have configured SSL on Apache HTTP, how do I configure SSL in my application in Tomcat? Thank´s -- *Obrigado Leonardo Torres, MSc.*
Re: Apache HTTP + Tomcat + SSL
Currently, the communication between httpd and tomcat is via HTTP. Tomcat version is 7.0.42 I have a resource within the tomcat that needs to be accessed via SSL, but the SSL is configured on HTTPD. How can I configure that ? Excuse me, but I'm newbie in server configuration. On Mon, Sep 30, 2013 at 10:11 AM, André Warnier a...@ice-sa.com wrote: Daniel Mikusa wrote: On Sep 30, 2013, at 8:20 AM, Leonardo Torres leonardotorr...@gmail.com wrote: Hi guys, I have the following structure : Apache HTTP (Proxy) -- Tomcat . So, I have configured SSL on Apache HTTP, how do I configure SSL in my application in Tomcat? Need some more info here... 1.) What version of HTTPD Tomcat are you using? 2.) Do you need SSL between HTTPD Tomcat? or do you just want Tomcat to know that SSL has been terminated by HTTPD? 3.) How is HTTPD communicating with Tomcat? via AJP or HTTP? Dan and the reasons for the above judicious questions are : browser -- SSL -- httpd + mod_proxy_http -- SSL or not -- Tomcat HTTP/HTTPS Connector or httpd + mod_proxy_AJP -- not SSL-- Tomcat AJP Connector or httpd + mod_jk -- not SSL-- Tomcat AJP Connector 2) SSL is expensive. Apache has to decrypt the browser communication anyway. The if you use SSL between Apache and Tomcat, Apache has to re-encrypt the data, and Tomcat to re-decrypt it. That takes resources, so if you don't need it, don't do it. Even if you use HTTP/AJP, httpd can pass on to Tomcat the received SSL headers, so Tomcat can inspect them. 3) AJP does not support SSL --**--**- To unsubscribe, e-mail: users-unsubscribe@tomcat.**apache.orgusers-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- *Obrigado Leonardo Torres, MSc.*
Re: OSGi in Tomcat
It´s great Violeta. We will move the discussion :) On Thu, Jul 25, 2013 at 1:19 AM, Violeta Georgieva miles...@gmail.comwrote: 2013/7/25 Leonardo Torres wrote: Thank´s. In my case, It´s not a problem the incompatibility. :) Sorry for my question, but in this case, I create a class that inherits from WebSocketServlet and use HttpService to register it? You create a class that inherits WebSocketServlet and pack it as in normal war. Then install the archive in OSGi and that's all. There is no need of HttpService. If you are interested in Gemini Web we can move the discussion here [1] Regards Violeta [1] http://www.eclipse.org/forums/index.php?t=threadfrm_id=153; -- Obrigado Leonardo Torres.
Re: OSGi in Tomcat
Thank´s for reply. With Gemini, can I use the tomcat websocket implementation? On Wed, Jul 24, 2013 at 8:09 AM, Martin Gainty mgai...@hotmail.com wrote: asking your release manager to build an OSGI artifact with eclipse may be a bit of a stretch if this is a live production-ready system then you will most likely be building at command-line with either ant or maven the trickiest part is interfacing to BND start and BND stop which can be accomplished with Activator sample code seen here http://wso2.com/library/tutorials/develop-osgi-bundles-using-maven-bundle-plugin lets pick this thread on us...@maven.apache.org Martin __ /Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Wed, 24 Jul 2013 13:30:01 +0300 Subject: Re: OSGi in Tomcat From: miles...@gmail.com To: users@tomcat.apache.org 2013/7/23 Leonardo Torres wrote: Thank´s for reply. Just one more question, If I want to use tomcat inside of OSGi environment, how can I do that ? Check Gemini Web documentation: http://www.eclipse.org/gemini/web/documentation/ http://wiki.eclipse.org/Gemini/Web Regards Violeta -- Obrigado Leonardo Torres.
Re: OSGi in Tomcat
Thank´s. In my case, It´s not a problem the incompatibility. :) Sorry for my question, but in this case, I create a class that inherits from WebSocketServlet and use HttpService to register it? On Wed, Jul 24, 2013 at 3:38 PM, Niki Dokovski nick...@gmail.com wrote: On Wed, Jul 24, 2013 at 9:07 PM, Leonardo Torres leonardotorr...@gmail.comwrote: Thank´s for reply. With Gemini, can I use the tomcat websocket implementation? You can use proprietary org.apache.catalina.websocket implementation. That however is not compatible with JSR 356 APIs. On Wed, Jul 24, 2013 at 8:09 AM, Martin Gainty mgai...@hotmail.com wrote: asking your release manager to build an OSGI artifact with eclipse may be a bit of a stretch if this is a live production-ready system then you will most likely be building at command-line with either ant or maven the trickiest part is interfacing to BND start and BND stop which can be accomplished with Activator sample code seen here http://wso2.com/library/tutorials/develop-osgi-bundles-using-maven-bundle-plugin lets pick this thread on us...@maven.apache.org Martin __ /Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Wed, 24 Jul 2013 13:30:01 +0300 Subject: Re: OSGi in Tomcat From: miles...@gmail.com To: users@tomcat.apache.org 2013/7/23 Leonardo Torres wrote: Thank´s for reply. Just one more question, If I want to use tomcat inside of OSGi environment, how can I do that ? Check Gemini Web documentation: http://www.eclipse.org/gemini/web/documentation/ http://wiki.eclipse.org/Gemini/Web Regards Violeta -- Obrigado Leonardo Torres. -- Obrigado Leonardo Torres.
OSGi in Tomcat
Hi guys, I would like to know how can I integrate tomcat with osgi (Equinox)? thank´s. -- Obrigado Leonardo Torres.
Re: OSGi in Tomcat
Let me explain my scenario, so you can help me. I have an application that uses the implementation of tomcat to websocket, and this application need to find services dynamically. So I need to use OSGi as service repository. I believe embed OSGi in tomcat, work in my scenario. On Tue, Jul 23, 2013 at 10:31 AM, Violeta Georgieva miles...@gmail.comwrote: 2013/7/23 Leonardo Torres wrote: Hi guys, I would like to know how can I integrate tomcat with osgi (Equinox)? What exactly do you need? - OSGi running inside Tomcat - Or Tomcat running inside OSGi environment. If this is what you need then you can look at http://eclipse.org/gemini/web Regards Violeta thank´s. -- Obrigado Leonardo Torres. -- Obrigado Leonardo Torres.
Re: OSGi in Tomcat
Thank´s for reply. Just one more question, If I want to use tomcat inside of OSGi environment, how can I do that ? On Tue, Jul 23, 2013 at 12:50 PM, Violeta Georgieva miles...@gmail.comwrote: 2013/7/23 Leonardo Torres wrote: Let me explain my scenario, so you can help me. I have an application that uses the implementation of tomcat to websocket, and this application need to find services dynamically. So I need to use OSGi as service repository. I believe embed OSGi in tomcat, work in my scenario. Then check that http://eclipse.dzone.com/articles/embedding-osgi-tomcat -- Obrigado Leonardo Torres.
Re: Subdomains in tomcat 7
My apologies, I dispatched to the list, before completing the question. Let me start again, please! I have one domain = www.portal.com I have one subdomain = www.painel.portal.com Both domains are configured (DNS) I wish that when the user to enter www.portal.com, the appA was loaded. When the user enter www.painel.portal.com, the appB was loaded. I tried to configure the server.xml file, using the Host tag, but domain independent, always load the same application. server.xml: Host name=www.portal.com appBase=ptt unpackWARs=true autoDeploy=true Context path= docBase=ptt-client/ROOT/ Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=%h %l %u %t quot;%rquot; %s %b / /Host Host name=www.painel.portal.com appBase=ptt unpackWARs=true autoDeploy=true Context path= docBase=ptt-manager/ROOT/ Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=%h %l %u %t quot;%rquot; %s %b / /Host In this case, always load the ptt-client/ROOT application. Any tutorial ? Thank´s. On Wed, Jan 16, 2013 at 4:18 PM, Mark Thomas ma...@apache.org wrote: On 16/01/2013 19:04, Leonardo Torres wrote: Hi guys, I use tomcat 7.0.34 and I惴 trying to configure a domain and a subdomain, but I don愒 have sucess yet. Read this: http://www.catb.org/esr/faqs/smart-questions.html Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Obrigado Leonardo Torres.
Re: Subdomains in tomcat 7
Thank´s, It´s works fine to my case. On Wed, Jan 16, 2013 at 9:40 PM, Mark Eggers its_toas...@yahoo.com wrote: On 1/16/2013 4:22 PM, Leonardo Torres wrote: My apologies, I dispatched to the list, before completing the question. Let me start again, please! I have one domain = www.portal.com I have one subdomain = www.painel.portal.com Both domains are configured (DNS) I wish that when the user to enter www.portal.com, the appA was loaded. When the user enter www.painel.portal.com, the appB was loaded. I tried to configure the server.xml file, using the Host tag, but domain independent, always load the same application. server.xml: Host name=www.portal.com appBase=ptt unpackWARs=true autoDeploy=true Context path= docBase=ptt-client/ROOT/ Valve className=org.apache.**catalina.valves.**AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=%h %l %u %t quot;%rquot; %s %b / /Host Host name=www.painel.portal.com appBase=ptt unpackWARs=true autoDeploy=true Context path= docBase=ptt-manager/ROOT/ Valve className=org.apache.**catalina.valves.**AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=%h %l %u %t quot;%rquot; %s %b / /Host In this case, always load the ptt-client/ROOT application. Any tutorial ? Thank´s. On Wed, Jan 16, 2013 at 4:18 PM, Mark Thomas ma...@apache.org wrote: On 16/01/2013 19:04, Leonardo Torres wrote: Hi guys, I use tomcat 7.0.34 and I惴 trying to configure a domain and a subdomain, but I don愒 have sucess yet. Read this: http://www.catb.org/esr/faqs/**smart-questions.htmlhttp://www.catb.org/esr/faqs/smart-questions.html Mark An old article, but still quite valid. http://wiki.apache.org/tomcat/**TomcatDevelopmentVirtualHostshttp://wiki.apache.org/tomcat/TomcatDevelopmentVirtualHosts It says development, but this structure works fine for production. . . . . just my two cents. /mde/ --**--**- To unsubscribe, e-mail: users-unsubscribe@tomcat.**apache.orgusers-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Obrigado Leonardo Torres.