https://avatars.githubusercontent.com/u/6058558

程式狂想筆記

Jboss 設定 http 導 https

redirect https://stackoverflow.com/a/43948374 我有測試上面網站方式,本機測試可以http導向https 我這邊standalone.xml 剛好預設有那些https設定,所以沒調整 project /WebContent/WEB-INF/web.xml 也需要加 1 2 3 4 5 6 7 8 9 <security-constraint> <web-resource-collection> <web-resource-name>WEB_APPLICATION_NAME</web-resource-name> <url-pattern>/*</url-pattern> </web-resource-collection> <user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint> </security-constraint> 參考:https://www.cnblogs.com/maximo/p/5775627.html rewrite standalone.xml 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 <subsystem xmlns="urn:jboss:domain:transactions:4.0"> <core-environment> <process-id> <uuid/> </process-id> </core-environment> <recovery-environment socket-binding="txn-recovery-environment" status-socket-binding="txn-status-manager"/> <object-store path="tx-object-store" relative-to="jboss.