RE: mod_jk - ajp hangs indefinitely on some requests
How can i be removed from this awful blog? Date: Thu, 4 Dec 2008 15:50:30 -0500 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Re: mod_jk - ajp hangs indefinitely on some requests Mark Thomas wrote: Roy McMorran wrote: libtcnative: 1.10 Sorry, should have seen this sooner. Try disabling it or using a newer version. I'll give it a try but I'm not hopeful. You see I have two systems exhibiting this hang behavior. The other one (dev) has the latest libtcnative (1.1.15). And I have a third (the production box) also using 1.1.10 that is fine (it doesn't hang). I admit, it's strange. Thanks -r -- Roy McMorran Systems Administrator MDI Biological Laboratory [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Send e-mail anywhere. No map, no compass. http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_anywhere_122008
SSL/Apache and Proxy
How do I configure server.xml on Tomcat? I have configured SSL through Apache and the proxy part works, however, I get this error in the ssl log [Thu Dec 04 15:06:12 2008] [error] (111)Connection refused: proxy: HTTPS: attempt to connect to 165.112.28.126:8443 (localhost) failed [Thu Dec 04 15:06:12 2008] [error] ap_proxy_connect_backend disabling worker for (localhost) _ Send e-mail anywhere. No map, no compass. http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_anywhere_122008
RE: SSL/Apache and Proxy
Here is my server.xml config. I can see the main localhost but whenever I try to type https://local3, it gives me a 503 Error ?xml version='1.0' encoding='utf-8'? Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.core.AprLifecycleListener SSLEngine=on / Listener className=org.apache.catalina.core.JasperListener / Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / GlobalNamingResources Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources Service name=Catalina Connector port=80 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 / !-- Define a SSL HTTP/1.1 Connector on port 8443 This connector uses the JSSE configuration, when using APR, the connector should be using the OpenSSL style configuration described in the APR documentation -- Connector port=8443 proxyPort=443 proxyName=local3 / Connector port=8009 protocol=AJP/1.3 redirectPort=8443 / Engine name=Catalina defaultHost=localhost Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase/ Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host Host name=local2 debug=1 appBase=webapps/local2 unpackWARs=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=projects. suffix=.txt timestamp=true/ Context path= docBase= debug=1 reloadable=true crossContext=true / Aliaslocal2/Alias /Host Host name=local3 debug=1 appBase=webapps/local3” unpackWARs=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=projects. suffix=.txt timestamp=true/ Context path= docBase= debug=1 reloadable=true crossContext=true / Aliaslocal3/Alias /Host /Engine /Service /Server ## From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: SSL/Apache and Proxy Date: Fri, 5 Dec 2008 02:31:34 + How do I configure server.xml on Tomcat? I have configured SSL through Apache and the proxy part works, however, I get this error in the ssl log [Thu Dec 04 15:06:12 2008] [error] (111)Connection refused: proxy: HTTPS: attempt to connect to 165.112.28.126:8443 (localhost) failed [Thu Dec 04 15:06:12 2008] [error] ap_proxy_connect_backend disabling worker for (localhost) _ Send e-mail anywhere. No map, no compass. http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_anywhere_122008 _ Send e-mail anywhere. No map, no compass. http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_anywhere_122008
RE: SSL/Apache and Proxy
Anyone know anything about this or will my post be ignored? From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: RE: SSL/Apache and Proxy Date: Fri, 5 Dec 2008 14:18:12 + Here is my server.xml config. I can see the main localhost but whenever I try to type https://local3, it gives me a 503 Error ?xml version='1.0' encoding='utf-8'? Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.core.AprLifecycleListener SSLEngine=on / Listener className=org.apache.catalina.core.JasperListener / Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / GlobalNamingResources Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources Service name=Catalina Connector port=80 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 / !-- Define a SSL HTTP/1.1 Connector on port 8443 This connector uses the JSSE configuration, when using APR, the connector should be using the OpenSSL style configuration described in the APR documentation -- Connector port=8443 proxyPort=443 proxyName=local3 / Connector port=8009 protocol=AJP/1.3 redirectPort=8443 / Engine name=Catalina defaultHost=localhost Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase/ Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host Host name=local2 debug=1 appBase=webapps/local2 unpackWARs=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=projects. suffix=.txt timestamp=true/ Context path= docBase= debug=1 reloadable=true crossContext=true / Aliaslocal2/Alias /Host Host name=local3 debug=1 appBase=webapps/local3” unpackWARs=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=projects. suffix=.txt timestamp=true/ Context path= docBase= debug=1 reloadable=true crossContext=true / Aliaslocal3/Alias /Host /Engine /Service /Server ## From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: SSL/Apache and Proxy Date: Fri, 5 Dec 2008 02:31:34 + How do I configure server.xml on Tomcat? I have configured SSL through Apache and the proxy part works, however, I get this error in the ssl log [Thu Dec 04 15:06:12 2008] [error] (111)Connection refused: proxy: HTTPS: attempt to connect to 165.112.28.126:8443 (localhost) failed [Thu Dec 04 15:06:12 2008] [error] ap_proxy_connect_backend disabling worker for (localhost) _ Send e-mail anywhere. No map, no compass. http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_anywhere_122008 _ Send e-mail anywhere. No map, no compass. http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_anywhere_122008 _ Send e-mail faster without improving your typing skills. http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_speed_122008
RE: SSL/Apache and Proxy
So is being a d-bag. Date: Mon, 8 Dec 2008 17:23:10 +0100 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Re: SSL/Apache and Proxy Doctor Khumalo: Anyone know anything about this or will my post be ignored? Hijacking unrelated threads is a good way to get ignored. Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Suspicious message? There’s an alert for that. http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_broad2_122008
RE: SSL/Apache and Proxy
This is what I placed in my httpd-ssl.conf entry for this particular sight VirtualHost local3:443ServerName local3:443DocumentRoot /usr/local/apache2/htdocs/stirDirectoryIndex index.html index.jsp index.shtmlErrorLog logs/local3_ssl_error_logTransferLog logs/local3_ssl_access_log ProxyPass / https://local3:8443/ ProxyPassReverse / https://local3:8443/ Date: Mon, 8 Dec 2008 15:53:38 +0100 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Re: SSL/Apache and Proxy Could you post your apache proxy configuration?On Mon, Dec 8, 2008 at 15:38, Doctor Khumalo [EMAIL PROTECTED] wrote: Anyone know anything about this or will my post be ignored? From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: RE: SSL/Apache and Proxy Date: Fri, 5 Dec 2008 14:18:12 +Here is my server.xml config. I can see the main localhost but whenever I try to type https://local3, it gives me a 503 Error ?xml version='1.0' encoding='utf-8'? Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.core.AprLifecycleListener SSLEngine=on / Listener className=org.apache.catalina.core.JasperListener / Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / GlobalNamingResources Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources Service name=Catalina Connector port=80 protocol=HTTP/1.1connectionTimeout=2 redirectPort=8443 / !-- Define a SSL HTTP/1.1 Connector on port 8443 This connector uses the JSSE configuration, when using APR, the connector should be using the OpenSSL style configuration described in the APR documentation -- Connector port=8443 proxyPort=443 proxyName=local3 / Connector port=8009 protocol=AJP/1.3 redirectPort=8443 / Engine name=Catalina defaultHost=localhost Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase/ Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host Host name=local2 debug=1 appBase=webapps/local2 unpackWARs=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=projects. suffix=.txt timestamp=true/ Context path= docBase= debug=1 reloadable=true crossContext=true / Aliaslocal2/Alias /Host Host name=local3 debug=1 appBase=webapps/local3 unpackWARs=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=projects. suffix=.txt timestamp=true/ Context path= docBase= debug=1 reloadable=true crossContext=true / Aliaslocal3/Alias /Host /Engine /Service /Server ## From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: SSL/Apache and Proxy Date: Fri, 5 Dec 2008 02:31:34 + How do I configure server.xml on Tomcat? I have configured SSL through Apache and the proxy part works, however, I get this error in the ssl log [Thu Dec 04 15:06:12 2008] [error] (111)Connection refused: proxy: HTTPS: attempt to connect to 165.112.28.126:8443 (localhost) failed [Thu Dec 04 15:06:12 2008] [error] ap_proxy_connect_backend disabling worker for (localhost) _ Send e-mail anywhere. No map, no compass. http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_anywhere_122008 _ Send e-mail anywhere. No map, no compass. http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_anywhere_122008 _ Send e-mail faster without improving your typing skills. http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_speed_122008 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Send e-mail faster without improving your typing skills. http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_speed_122008
RE: SSL/Apache and Proxy
OK, thanks. If I remove Tomcat from the equation, I can get HTTPS to work with Apache but when I try to start Tomcat and proxy the HTTPS request to Tomcat, it fails. So, enabling HTTPS on Tomcat 8443 like the following still fails: Connector port=8443 minSpareThreads=5 maxSpareThreads=75 proxyName=local3 enableLookups=true disableUploadTimeout=true acceptCount=100 maxThreads=200 scheme=https secure=true SSLEnabled=true SSLCertificateFile=/usr/local/apache2/conf/ssl.key/local3.crt SSLCertificateKeyFile=/usr/local/apache2/conf/ssl.key/server.key clientAuth=false sslProtocol=TLS/ Date: Mon, 8 Dec 2008 15:53:04 +0100 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Re: SSL/Apache and Proxy Your configuration doesn't look like you are speaking HTTPS on Tomcat port 8443, but your Apache error looks like you configured httpd to proxy to an HTTPS port. So either enable HTTPS on Tomcat 8443 or tell Apache to talk HTTP to the backend. See also http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html Regards, Rainer Doctor Khumalo schrieb: Anyone know anything about this or will my post be ignored?From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: RE: SSL/Apache and Proxy Date: Fri, 5 Dec 2008 14:18:12 +Here is my server.xml config. I can see the main localhost but whenever I try to type https://local3, it gives me a 503 Error ?xml version='1.0' encoding='utf-8'? Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.core.AprLifecycleListener SSLEngine=on / Listener className=org.apache.catalina.core.JasperListener / Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / GlobalNamingResources Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources Service name=Catalina Connector port=80 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 / !-- Define a SSL HTTP/1.1 Connector on port 8443 This connector uses the JSSE configuration, when using APR, the connector should be using the OpenSSL style configuration described in the APR documentation -- Connector port=8443 proxyPort=443 proxyName=local3 / Connector port=8009 protocol=AJP/1.3 redirectPort=8443 / Engine name=Catalina defaultHost=localhost Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase/ Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host Host name=local2 debug=1 appBase=webapps/local2 unpackWARs=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=projects. suffix=.txt timestamp=true/ Context path= docBase= debug=1 reloadable=true crossContext=true / Aliaslocal2/Alias /Host Host name=local3 debug=1 appBase=webapps/local3” unpackWARs=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=projects. suffix=.txt timestamp=true/ Context path= docBase= debug=1 reloadable=true crossContext=true / Aliaslocal3/Alias /Host /Engine /Service /Server ##From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: SSL/Apache and Proxy Date: Fri, 5 Dec 2008 02:31:34 +How do I configure server.xml on Tomcat? I have configured SSL through Apache and the proxy part works, however, I get this error in the ssl log [Thu Dec 04 15:06:12 2008] [error] (111)Connection refused: proxy: HTTPS: attempt to connect to 165.112.28.126:8443 (localhost) failed [Thu Dec 04 15:06:12 2008] [error] ap_proxy_connect_backend disabling worker for (localhost) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Send e-mail faster without improving your typing skills. http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_speed_122008
RE: SSL/Apache and Proxy
Connector port=8443 minSpareThreads=5 maxSpareThreads=75 proxyName=local3 enableLookups=true disableUploadTimeout=true acceptCount=100 maxThreads=200 scheme=https secure=true SSLEnabled=true SSLCertificateFile=/usr/local/apache2/conf/ssl.key/local3.crt SSLCertificateKeyFile=/usr/local/apache2/conf/ssl.key/server.key clientAuth=false sslProtocol=TLS/ Can you talk to Tomcat port 8443 using HTTPS directly with your browser? As long as that doesn't work, the combination with Apache in front will not do it as well. Is the encryption between Apache and Tomcat important for you? If no, then don't bother setting up an https port and instead use http between Apache and Tomcat. So, would I comment out the above and use HTTPS by pointing Apache to the Tomcat host root folder? _ Send e-mail faster without improving your typing skills. http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_speed_122008
RE: SSL/Apache and Proxy
How would I do that? Date: Mon, 8 Dec 2008 18:01:16 +0100 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Re: SSL/Apache and Proxy You can just use proxy_pass_ajp instead just proxy_pass. This way you don't need tomcat ssl listener. Rainer Jung wrote: Doctor Khumalo schrieb:OK, thanks. If I remove Tomcat from the equation, I can get HTTPS to work with Apache but when I try to start Tomcat and proxy the HTTPS request to Tomcat, it fails. So, enabling HTTPS on Tomcat 8443 like the following still fails: Connector port=8443 minSpareThreads=5 maxSpareThreads=75 proxyName=local3 enableLookups=true disableUploadTimeout=true acceptCount=100 maxThreads=200 scheme=https secure=true SSLEnabled=true SSLCertificateFile=/usr/local/apache2/conf/ssl.key/local3.crt SSLCertificateKeyFile=/usr/local/apache2/conf/ssl.key/server.key clientAuth=false sslProtocol=TLS/ Can you talk to Tomcat port 8443 using HTTPS directly with your browser? As long as that doesn't work, the combination with Apache in front will not do it as well. Is the encryption between Apache and Tomcat important for you? If no, then don't bother setting up an https port and instead use http between Apache and Tomcat. Regards, Rainer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Milan Cvejić Sistem Administrator Inbox d.o.o. Software for Internet Bulevar Zorana Đinđića 99, 11000 Beograd, Srbija tel +381 11 313 07 21 mob +381 65 344 42 23 fax +381 11 313 37 34 [EMAIL PROTECTED] www.inbox-online.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Send e-mail faster without improving your typing skills. http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_speed_122008
Tomcat Web Application Manager
I just set up Apache-Tomcat 6.0.16 and have two domain names to be used as virtual hosts on the same machine. I have set this up in $CATALINA_HOME/conf/server.xml and can now see them both show up on the server. After editing the tomcat-users.xml, I can now look at the main Tomcat Web Application Manager page. However, I can only see the /docs, /examples, /manager, and /host-manager directories. I then moved the docroot for the virtual hosts to the $CATALINA_HOME/webapps folder since this is where the Web Application Manager seems to show these in. How can I deploy new .war files for my current virtual hosts directory? When I try to deploy the war file it states FAIL - Invalid context path was specified I don't see any good online documentation on how the Tomcat Web App Manager works. Can anyone help? _ Time for vacation? WIN what you need- enter now! http://www.gowindowslive.com/summergiveaway/?ocid=tag_jlyhm