• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Securing web application / https

 
Ranch Hand
Posts: 153
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to secure a web application and implement https:
web.xml



The basic login works. After that I have tried to implement https



https://localhost:8443/
works.
But when I try to access my web app under the address
https://localhost:8080/my-aktion
(the application has worked without https)
I get redirected to
https://localhost/my-aktion/organisator/aktionList.jsf
to which the browser cannot connect.
also when I try to add the port:
https://localhost:8443/my-aktion/organisator/aktionList.jsf
I get again redirect to the wrong address.

I would be very gratefull for any suggestions.

Thanks,

Hans
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Markus Schmider wrote:
But when I try to access my web app under the address
https://localhost:8080/my-aktion


That's the wrong URL. You should be using https://localhost:8443/my-aktion for HTTPS. If you want to test the redirection for organisator path, then you could try this URL http://localhost:8080/my-aktion/organisator/aktionList.jsf. Since the organisator path is marked as CONFIDENTIAL in your web.xml, the server will redirect it to the HTTPS scheme with the relevant port. Give it a try.

reply
    Bookmark Topic Watch Topic
  • New Topic