Hello,

I am having difficulty installing GeoServer 2.19.2 hosted with reverse
proxy to apache. I have done this setup previously successfully several
times with geoserver 2.18,
To test I uninstalled 2.19.2 and re-installed 2.18.4 and it worked as
expected so I suspect there is a change in 2.19.2
OS: ubuntu 20
Tomcat: 9

Issue with  2.19.2 http (NOT SECURE): login is redirected INCORRECTLY to:
127.0.0.1:8080/geoserver/j_spring_security_check

Page is not found.

tutorial I followed to proxy tomcat to apache
<https://websiteforstudents.com/setup-apache2-proxy-server-for-tomcat-9-on-ubuntu-16-04-17-10-18-04/>

Issue with  2.19.2 https:
[image: image.png]

Note I don't have an issue with tomcat, and there are no errors in
catalina. Also as I mentioned this works with 2.18.4

*All Relevant configurations:*

nano /opt/tomcat/latest/conf/server.xml

<!--Uncomment this section to support apache certbot SSL-->

<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
           maxThreads="150" SSLEnabled="true">
    <SSLHostConfig>

                <Certificate certificateKeyFile="conf/privkey.pem"
                     certificateFile="conf/cert.pem"
                     certificateChainFile="conf/chain.pem"
                      />

    </SSLHostConfig>

nano /opt/tomcat/latest/conf/web.xml

<!--Added by Vera to support cores for geoserver admin-->

     <filter>         <filter-name>CorsFilter</filter-name>
<filter-class>org.apache.catalina.filters.CorsFilter</filter-class>
     <init-param>
<param-name>cors.allowed.origins</param-name>
<param-value>*</param-value>         </init-param>     </filter>
<filter-mapping>         <filter-name>CorsFilter</filter-name>
<url-pattern>/*</url-pattern>     </filter-mapping>



nano /opt/tomcat/latest/webapps/geoserver/WEB-INF/web.xml

  <!--Added by Vera to support reverse proxy-->  <context-param>
 <param-name>GEOSERVER_CSRF_WHITELIST</param-name>
<param-value>mysubdomain.mydomain.com</param-value>  </context-param>

nano /etc/apache2/sites-available/mySite.conf

        ProxyRequests Off        <Proxy *>          Order deny,allow
       Allow from all        </Proxy>        ProxyPass /
http://127.0.0.1:8080/        ProxyPassReverse /
http://127.0.0.1:8080/        <Location />          Order allow,deny
       Allow from all        </Location>

What changed in 2.19? Any ideas?
Thanks much,
Vera
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to