skip to Main Content

I have a tomcat apache installed with ssl on Centos and I have deployed GeoServer as webapp into tomcat…when I access GeoServer through tomcat as
https://XXXX.XXXXXXXXX.com/geoserver/web/
and enter the login details page will be redirected to http://localhost:8080/geoserver/j_spring_security_check,it supposed to take me inside GeoServer again with https link

2

Answers


  1. Chosen as BEST ANSWER

    After 3 days ,finally I figured out the issue. You have to do the below steps to make it work :

    1. Go to the geoserver directory inside apatche/webapps
    2. Open the web.xml file inside web-inf for editing
    3. Uncomment the below tag and edit the value to you tomcat main url as below :
        <context-param>
          <param-name>PROXY_BASE_URL</param-name>
          <param-value>https://XXXXX.XXXXXXXXXX.XXXX/geoserver</param-value>
          </context-param>
    
    1. Save the file and everything works.

  2. This problem can be solved with JVM parameter -DALLOW_ENV_PARAMETRIZATION=true and environment variable PROXY_BASE_URL=https://XXXXX.XXXXXXXXXX.XXXX/geoserver.

    Tested on kartoza/geoserver:2.20.1 (snippet from docker-compose.yml):

    environment:
      - JAVA_OPTS="-DALLOW_ENV_PARAMETRIZATION=true"
      - PROXY_BASE_URL=https://XXXXX.XXXXXXXXXX.XXXX/geoserver
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search