Add HSTS feature to Tomcat

前端 未结 4 1804
天涯浪人
天涯浪人 2021-02-02 01:06

Trust you all well.

My web application run on tomcat 6.0.43 and do not use apache or nginx at front.

I\'m already enforce my web from http redirect to https usi

4条回答
  •  無奈伤痛
    2021-02-02 02:03

    Use url-rewrite.

    1. Create a url-rewrite config file and put it into your web application's WEB-INF/classes directory
    2. Add a rule that adds that header to all requests

    Note that this is not HSTS-specific: you can do anything you want with url-rewrite.

提交回复
热议问题