<div dir="ltr"><div>Dear All,</div><div><br></div><div>As  I posted earlier, we need to enable GeoNode with https but facing the issues.   The following are added for https</div><div><br></div><div><div> 1.   Apache Configured with https and required changes are added in geonode.conf as per  mentioned   in <a href="http://docs.geonode.org/en/2.8.1/tutorials/advanced/geonode_production/ssl.html">http://docs.geonode.org/en/2.8.1/tutorials/advanced/geonode_production/ssl.html</a></div><div><br></div><div>2.  Tomcat /GeoServer Configuration - </div><div>   (i)Modified the  Server.xml and done required changes </div><div>         <span style="color:rgb(80,0,80);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;white-space:pre-wrap;box-sizing:border-box"><font color="#666666"><</font></span><span style="font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;white-space:pre-wrap;color:rgb(64,64,64);box-sizing:border-box">Connector</span><font style="font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;white-space:pre-wrap"> </font><span style="font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;white-space:pre-wrap;color:rgb(64,64,64);box-sizing:border-box">port</span><span style="font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;white-space:pre-wrap;color:rgb(102,102,102);box-sizing:border-box">=</span><span style="font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;white-space:pre-wrap;color:rgb(64,112,160);box-sizing:border-box">"8080"</span><font style="font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;white-space:pre-wrap"> </font><span style="font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;white-space:pre-wrap;color:rgb(64,64,64);box-sizing:border-box">protocol</span><span style="font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;white-space:pre-wrap;color:rgb(102,102,102);box-sizing:border-box">=</span><span style="font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;white-space:pre-wrap;color:rgb(64,112,160);box-sizing:border-box">"HTTP/1.1"</span></div><pre style="white-space:pre-wrap;color:rgb(80,0,80);box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;margin-top:0px;margin-bottom:0px;padding:12px;overflow:auto;line-height:1.4"><font style="color:rgb(34,34,34)">    </font><span style="color:rgb(64,64,64);box-sizing:border-box">connectionTimeout</span><span style="color:rgb(102,102,102);box-sizing:border-box">=</span><span style="color:rgb(64,112,160);box-sizing:border-box">"20000"</span><font style="color:rgb(34,34,34)">
    </font><span style="color:rgb(64,64,64);box-sizing:border-box">URIEncoding</span><span style="color:rgb(102,102,102);box-sizing:border-box">=</span><span style="color:rgb(64,112,160);box-sizing:border-box">"UTF-8"</span><font style="color:rgb(34,34,34)">
    </font><span style="box-sizing:border-box"><font color="#00ff00">scheme</font></span><span style="color:rgb(102,102,102);box-sizing:border-box">=</span><span style="color:rgb(64,112,160);box-sizing:border-box">"https"</span><font style="color:rgb(34,34,34)">
    </font><span style="color:rgb(64,64,64);box-sizing:border-box">proxyName</span><span style="color:rgb(102,102,102);box-sizing:border-box">=</span><span style="color:rgb(64,112,160);box-sizing:border-box">"<ourDomainName .. for example as<b> <a href="http://exmaple.com/" target="_blank">exmaple.com</a> </b>>"</span><font style="color:rgb(34,34,34)">
    </font><span style="color:rgb(64,64,64);box-sizing:border-box">proxyPort</span><span style="color:rgb(102,102,102);box-sizing:border-box">=</span><span style="color:rgb(34,34,34);box-sizing:border-box"><font color="#4070a0">"</font><font color="#ff0000">443</font><font color="#4070a0">"</font></span><font style="color:rgb(34,34,34)">
</font><span style="color:rgb(102,102,102);box-sizing:border-box">  /></span></pre><div>   (ii)  Modified /var/lib/tomcat/webapps/geoserver/WEB-INF/web.xml</div><div>       <b>  Geonode_BASE_URL</b> to <a href="https://ourdomainname">https://ourdomainname</a></div><div><br></div><div>   (iii) Modified /var/lib/tomcat/webapps/geoserver/data/web.xml))</div><div><br></div><div>         <b> Proxybaseurl </b>: <b> https://</b>ourdomainname/geoserver </div><div>      <br></div><div><span class="gmail-il">3.  GeoNode</span> Configuration - Changed Site Url to https</div><div>   (i) 

/var/lib/tomcat/webapps/geoserver/data/security/auth/geonodAuthProvider/config.xml

</div><div>        baseurl to <a href="https://ourdoamingname">https://ourdoamingname</a></div><div>   (ii) In local_settings.py and setttings.py </div><div>       a.  sitename and siteurl to <a href="https://ourdomainname">https://ourdomainname</a></div><div>       b.GEOSERVER_LOCATION: <b><a href="http://ourdomainname:8080/geoserver">http://ourdomainname:8080/geoserver</a></b></div><div>          GEOSERVER_PUBLIC_LOCATION: <b>https:// ourdomainname/geoserver

</b><br></div><div><br></div><div><br></div><div>  After doing the above the changes , <b>our GeoNode portal is able to access with https</b>, however the following functionalities are not working</div><div><br></div><div>  1. When we are uploading the data, the following error is appearing</div><div><br></div><div>  <span style="color:rgb(138,109,59);font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;background-color:rgb(252,248,227)">Tried to make a GET request to </span><a href="http://localhost:8080/geoserver/rest/workspaces/default.xml" target="_blank" style="font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px">http://ourdomainname:8080/geoserver/rest/workspaces/default.xml</a><span style="color:rgb(138,109,59);font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;background-color:rgb(252,248,227)"> but got a 404 status code:'</span></div><div><span style="color:rgb(138,109,59);font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;background-color:rgb(252,248,227)"><br></span></div><div><span style="color:rgb(138,109,59);font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;background-color:rgb(252,248,227)">2.  Edit style is not working</span></div><div><span style="color:rgb(138,109,59);font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;background-color:rgb(252,248,227)">   </span><a href="https://domainname/gs/rest/layers/geonode:_11_19_2019_6450480_1.json">https://domainname/gs/rest/layers/geonode:_11_19_2019_6450480_1.json</a>  -- <b> notfound   (error code:404)</b></div><div><b>  </b><a href="https://ourdomainname/gs/rest/styles/_11_19_2019_6450480_1.xml">https://ourdomainname/gs/rest/styles/_11_19_2019_6450480_1.xml</a> --- error code 500 ( some internal server error)</div><div><br></div><div>In above both are <b>REST services which are not working</b> however, When I tried to access <b><a href="http://ourdomainname:8080/geoserver">http://ourdomainname:8080/geoserver</a> it is redirecting to <a href="https://ourdomainname/geoserver">https://ourdomainname/geoserver</a></b> ( it is loading properly)  </div><div> </div><div>Please kindly help me, is somewhere I need to do the REST services settings.</div><div><br></div><div>Thanks&Regards,</div><div>Naresh.n</div><div><br></div><div> </div><div><br></div><div><br></div><div><br></div><div><span style="color:rgb(138,109,59);font-family:Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;background-color:rgb(252,248,227)"> </span></div></div></div>