• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Can�t get SSL redirection to work for root application context.

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everybody!

I am running Jboss 4.0.1 and I have an application.ear called pds running on it. To access the application you simple write "http://adress:8080/pds"

Now I wanted to enable ssl on the webapp.war in the application so I changed the server.xml and web.xml and created a keystore and everything. I redirect from "8080" to "8443" and everything works as long as do like this.
"https://adress:8443/pds" - works!!

"http://adress:8080/pds/login.jsp" - works!
get redirected to "https://adress:8443/pds/xxxxx"

"http://adress:8080/pds" - doesn�t work
I get a no page found error.

I really need the the old url "http://adress:8080/pds" to be redirected to "https://adress:8443/pds "

Any suggestions??

Below follows some relevant sections from my server.xml and web.xml


======= server.xml ==============

port = "8080"
address = "${jboss.bind.address}"
maxThreads = "150"
minSpareThreads = "25"
maxSpareThreads = "75"
enableLookups = "false"
redirectPort = "8443"
acceptCount = "100"
connectionTimeout = "20000"
disableUploadTimeout = "true"/>

port = "8443"
address = "${jboss.bind.address}"
maxThreads = "100"
minSpareThreads = "5"
maxSpareThreads = "15"
scheme = "https"
secure = "true"
clientAuth = "false"
keystoreFile = "./keystore"
keystorePass = "secret"
sslProtocol = "TLS"/>

=============== web.xml =====================
<display-name>Security for Julius PDS</display-name>
<web-resource-name>Julius web Security</web-resource-name>
<description>Redirect all to SSL</description>
<description>Protection should be CONFIDENTIAL</description>
After some pecan pie, you might want to cleanse your palatte with this tiny ad:
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic