title: How to enable both HTTP and HTTPS in Tomcat without redirect?
body: <p>I am configuring Tomcat to support both HTTP (on port 8080) and HTTPS (port 8443). In the server.xml, if I configure like this: </p>
  
  <pre><code>    &lt;Connector port="8080" protocol="HTTP/1.1"
             connectionTimeout="20000"
             URIEncoding="UTF-8" 
             redirectPort="8443" /&gt;
  
      &lt;Connector port="8443" protocol="HTTP/1.1" 
             SSLEnabled="true"
             scheme="https" 
             secure="true"
             Server=""
             keystoreFile="conf/.keystore"
             keystorePass="password"
             maxThreads="150"
             maxSpareThreads="75"
             minSpareThreads="25" 
             clientAuth="false" sslProtocol="TLS" 
             URIEncoding="UTF-8"
             /&gt;
  </code></pre>
  
  <p>All access to <a href="http://SERVER_IP:8080" rel="nofollow noreferrer">http://SERVER_IP:8080</a> will be directed to <a href="https://SERVER_IP:8443" rel="nofollow noreferrer">https://SERVER_IP:8443</a>. How can I disable the redirection, and allow both http and https access?</p>
  
  <p>I tried to remove <code>redirectPort="8443"</code>, but it does not work.</p>