AnswerBun.com

With Glassfish, how to resolve https URL to http URL

Server Fault Asked by tale852150 on November 29, 2020

GlassFish 3.0.1 RHEL 6.5 MySQL 5.4

Hello all

I have a web app running under GlassFish/RHEL/MySQL where all of the software tiers (GlassFish/RHEL/MySQL) are on the same system. I have a (separate) DNS server which maps mycompany.myserver.org to 10.1.2.3. I can resolve the server name with nslookup successfully so DNS is working. I can access the web app internally by using http://10.1.2.3:8080/myapp/p=101.

However, I want to use SSL and I want to access my app (internally) via https://mycompany.myserver.org/myapp/p=101.

How does one do this using GlassFish? In other words, how does one “map” https://mycompany.myserver.org/myapp/p=101 and redirect/resolve it to http://10.1.2.3:8080/myapp/p=101?

Many thanks …

One Answer

You can add a https listener to glassfish either by using the admin console or by editing the domain.xml.

If you afterwards disable the http listener you can only access by https.

A redirect or proxy is not needed.

Please note that you can use port 443 (the default port for https) only if you run glassfish as root.

Answered by Uwe Plonus on November 29, 2020

Add your own answers!

Related Questions

Is it possible to mount CIFS onto Solaris 10 server

1  Asked on December 25, 2021 by andym

     

disable ssl for mysql client apps

1  Asked on December 25, 2021

     

.NET Issue on ADFS SSO behind a Reverse Proxy

1  Asked on December 25, 2021 by yoshimori

         

Apache simple redirect not working

1  Asked on December 25, 2021 by cma4

     

ESXi 6.7: Suddenly unable to login

1  Asked on December 25, 2021 by farosch

   

Jenkins Integration with Android studio

2  Asked on December 25, 2021 by manikandan-ram

       

Virtual users in sshd from a postgres database

2  Asked on December 23, 2021 by bastien-abadie

       

Tuning high-raffic nginx and wordpress server

2  Asked on December 23, 2021 by reustmd

         

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir