• 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
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

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.

 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic