I’m 39++

I’m turning 39++ and in my 20 years of IT I have seen and did many things   My first day on the job I broke the SCM. Destroyed completely I sent 3 people for a week to another country to fix something for a boolean I forgot to reset I forgot Read more…

By Rodrigo Asensio, ago

Redirect all HTTP traffic to HTTPS in tomcat by default

Just a quick tip, here is how you force your webapp to be served in HTTPS only. Open your web.xml file and add this security constraint <security-constraint> <web-resource-collection> <web-resource-name>MyApp</web-resource-name> <url-pattern>/*</url-pattern> </web-resource-collection> <user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint> </security-constraint> Follow me on twitter @rasensio

By Rodrigo Asensio, ago