In either case, the Apache proxy module forwards traffic to the Tomcat proxy port (8009, by default). I prefer mod_proxy, but mod_jk is popular. That is usually done using either mod_jk or mod_proxy. What you actually have to do is configure an Apache proxy module to forward requests that come in on port 80 for Tomcat over to Tomcat. So Apache is using port 80 and therefore Tomcat cannot (even if it wasn't a violation of the rule I just mentioned). Only one process can own a specific TCP/IP address/port at a time. For another, the Apache (or Nginx) proxy has the ability to server not only Tomcat, but non-J2EE webapps such as Wordpress (which is written in PHP, not Java). For one thing, Tomcat should not be run with any Connector ports numbered less than 4096 for security reasons. What you are actually trying to do is use Apache httpd server ("Apache" for short - not to be confused with Apache Tomcat) as a reverse proxy for Tomcat. Please, can anyone help, I have spent two days trying to resolve this problem. Now I get the error message 'Site can't be reached - The connection was reset' when trying to access the site with http or https. Trying to navigate to I get the error 'Site can't be reached - The connection was reset' as in the attached screen shot.Ĭarrying on the tutorial to restrict access to Tomcat installation. I followed the 'self-signed SSL guide for Apache' in the tutorial, setting ServerName to IP address. Assuming that this was to do with having Tomcat manager installed I blindly carried on with the installation. In accordance with the tutorial I then tried to navigate to the but the Tomcat 'It works' page was displayed rather than the suggested 'Apache2 Ubuntu default page'. In a accordance with the tutorial I set up the 'ufw' rules, although this could be disabled. Ports 80 and 443 is enabled in the Azure VM firewall The only connector defined in the Tomcat8 server.xml file is: I set the ServerName in the nf file is set to the ip of the server. Selecting the Apache option, and installing Apache web server according to Step 1 in the 'this guide' link in the tutorial. I am trying to implement https using self certification. I have an application running on an Ubuntu 16.04 VM running Tomcat in Azure.
0 Comments
Leave a Reply. |