Friday, February 4, 2022

[SOLVED] Access to geoserver (hosted on EC2) from a website

Issue

I have set up a geoserver (ubuntu) hosted on EC2 to serve my tiles (WMS). My website can access the tiles with Leaflet when ran locally (http://127.0.0.1:8000/).

However, when I deploy the site on line (https://www.example.com), I get the following error in the console: net::ERR_SSL_PROTOCOL_ERROR

I opened the EC2 Inbound and Outbound rules to https - everywhere.

I guess it has something to do with the "proxy URL" in Geoserver global configuration. I am not very familiar with proxies and I don't understand what I am supposed to put here. When I put "www.example.com", it still does not work.

Any clue ? Thanks a lot


Solution

I believe the issue is you're trying to access the website using HTTPS while the application is being served using HTTP

to configure SSL

https://hackmd.io/@0plKX4z5TGSOwOm65xoKoA/Bkvj2OGoM?type=view



Answered By - AWS PS
Answer Checked By - Clifford M. (WPSolving Volunteer)