2015年3月20日金曜日

Tomcatで8080から8443にフォワードするには?

web.xmlを

<security-constraint>
    <web-resource-collection>
        <web-resource-name>Someapp</web-resource-name>
        <url-pattern>/*</url-pattern>
        <http-method>GET</http-method>
        <http-method>POST</http-method>
    </web-resource-collection>

    <user-data-constraint>
        <transport-guarantee>CONFIDENTIAL</transport-guarantee>
    </user-data-constraint>
</security-constraint>

server.xmlを

<Connector port="443" protocol="HTTP/1.1" SSLEnabled="true"
          maxThreads="150" scheme="https" secure="true"
          clientAuth="false" sslProtocol="TLS" 
          keystoreFile="/somepath/.keystore"
          keystorePass="somepass"/>


0 件のコメント:

コメントを投稿