{"action":"opened","issue":{"url":"https://api.github.com/repos/openshift/devcenter/issues/369","labels_url":"https://api.github.com/repos/openshift/devcenter/issues/369/labels{/name}","comments_url":"https://api.github.com/repos/openshift/devcenter/issues/369/comments","events_url":"https://api.github.com/repos/openshift/devcenter/issues/369/events","html_url":"https://github.com/openshift/devcenter/issues/369","id":112625721,"number":369,"title":"Unable to configure redirection to https in wildfly 8.2","user":{"login":"harishkannarao","id":3831063,"avatar_url":"https://avatars.githubusercontent.com/u/3831063?v=3","gravatar_id":"","url":"https://api.github.com/users/harishkannarao","html_url":"https://github.com/harishkannarao","followers_url":"https://api.github.com/users/harishkannarao/followers","following_url":"https://api.github.com/users/harishkannarao/following{/other_user}","gists_url":"https://api.github.com/users/harishkannarao/gists{/gist_id}","starred_url":"https://api.github.com/users/harishkannarao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harishkannarao/subscriptions","organizations_url":"https://api.github.com/users/harishkannarao/orgs","repos_url":"https://api.github.com/users/harishkannarao/repos","events_url":"https://api.github.com/users/harishkannarao/events{/privacy}","received_events_url":"https://api.github.com/users/harishkannarao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-21T16:13:35Z","updated_at":"2015-10-21T16:13:35Z","closed_at":null,"body":"Hi Team,\r\nI tried to force all traffic to my application to https in wildfly 8.2 server hosted on openshift. However I can't get it working for my application.\r\n\r\nI had created a jboss-web.xml file in src/main/webapp/WEB-INF/ directory\r\n<jboss-web>\r\n  <security-domain>jboss-web-policy</security-domain>\r\n  <valve>\r\n    <class-name>org.jboss.web.rewrite.RewriteValve</class-name>\r\n  </valve>\r\n</jboss-web>\r\n\r\nAnd I created a rewrite.properties file in src/main/webapp/WEB-INF/ directory\r\nRewriteCond %{HTTP:X-Forwarded-Proto} http\r\nRewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R,L]\r\n\r\nHowever I was still able to access my application on http. I was not redirected to https\r\n\r\nPlease advice if I am missing some thing in the configuration?\r\n\r\nI don't want to apply this change in web.xml, as it becomes difficult to test my application in local and development environment. The problem is I have to configure a self signed certificate in my local wildfly and my tests (rest client and selenium drivers) are failing because of self signed certificate. \r\n<security-constraint>\r\n  <web-resource-collection>\r\n    <url-pattern>/*</url-pattern>\r\n  </web-resource-collection>\r\n  <user-data-constraint>\r\n    <transport-guarantee>CONFIDENTIAL</transport-guarantee>\r\n  </user-data-constraint>\r\n</security-constraint>"}}