I have the fillowing problem to solve for a job interview. Install the latest version of Apache Tomcat 7 using the latest version of Oracle Java 8. Done. Running under a non-root account. Done. With the provided helloworld.war deployed under the /app web context (https://<hostname>/app) Done.
With HTTPS enabled using a self-signed certificate that you generate Done. * Ensure the web application is available to the Internet for both HTTP and HTTPS * HTTP requests should be redirected to HTTPS automatically I need help with the last two tasks. Do I need two redirecting connectors? 'iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080' could be the first step. Then . . . <Connector port="8080" enableLookups="false" redirectPort="443" /> <Connector port="443" protocol="org.apache.coyote.http11.Http11Protocol" enableLookups="false" redirectPort="8443" /> How do I tell Tomcat to use ssl on a specific port? I was able to load the site in my browser without specifying a port which seemed like a win but I need to see that good old self-signed cert warning in my browser before I can call it a day. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org