52North / SOS

52°North Sensor Observation Service
https://52north.org/software/software-projects/sos/
GNU General Public License v2.0
111 stars 83 forks source link

When running behind ssl protected proxy: login to admin switches back to http #403

Open EHJ-52n opened 8 years ago

EHJ-52n commented 8 years ago

Hi, I am running a SOS 4.2.0-SNAPSHOT behind an SSL protected proxy. When clicking on "admin" in the WebUI, the scheme is switched back to HTTP.

PasunuriSrinidhi commented 1 year ago

I want to work on this issue ,can you please assign this to me?

PasunuriSrinidhi commented 1 year ago

Hi, I am running a SOS 4.2.0-SNAPSHOT behind an SSL protected proxy. When clicking on "admin" in the WebUI, the scheme is switched back to HTTP.

It seems that the SOS WebUI is not properly configured to work with an SSL-protected proxy. To fix this issue, you need to configure the SOS server to properly handle SSL traffic through the proxy.

Here are the steps to fix this issue:

In the sos.conf file, make sure that the sos.url property is set to the HTTPS URL of the SOS server, including the port number (if not using the default HTTPS port 443). For example: sos.url=https://sos.example.com:8443

In the same sos.conf file, add the following properties to configure the SSL proxy:

sos.proxy.scheme=https sos.proxy.host= sos.proxy.port=

Replace and with the hostname and port number of your SSL proxy.

Restart the SOS server to apply the changes.

Try accessing the SOS WebUI again using the HTTPS URL. When clicking on "admin" in the WebUI, the scheme should now remain HTTPS.

If the above steps do not work, you may need to check the configuration of your SSL proxy to ensure that it is properly configured to handle SSL traffic.