[GeoNode-users] (no subject)
Amedeo Fadini
amefad at gmail.com
Wed May 8 09:48:44 PDT 2019
Hi Naresh,
Currently I have 2.4 and 2.8 installation running but I'm not sure in how
it should be in your version.
There are 2 issues:
1) 404 error in upload
2) unable to access to geoserver interface
1) Maybe the 404 error is related to the second part of the URL default
workspace or rest service of Geoserver, could you check if from inside the
server the url http://localhost:8080/geoserver is accessible or gives a 404
error? (i use lynx from ssh console, it shows a javascript missing advice)
2) The connector in server.xml seems ok (see also
https://tomcat.apache.org/tomcat-6.0-doc/config/http.html) tomcat server
only serve the applications it usaully not redirect. If your menu entries
has a destination url like "https://<ourdomainname>/proxy?url=......." the
value of url should be the value of GEOSERVER_BASE_URL that is taken from
OGC_SERVER > PUBLIC LOCATION in local_settings.py
your OGC_SERVER should be:
OGC_SERVER = {
'default' : {
'BACKEND' : 'geonode.geoserver',
'LOCATION' : GEOSERVER_LOCATION,
'PUBLIC_LOCATION' : GEOSERVER_PUBLIC_LOCATION,
'USER' : 'admin',
'PASSWORD' : '******',
'MAPFISH_PRINT_ENABLED' : True,
'PRINT_NG_ENABLED' : True,
'GEONODE_SECURITY_ENABLED' : True,
'GEOGIG_ENABLED' : False,
'WMST_ENABLED' : False,
'BACKEND_WRITE_ENABLED': True,
'WPS_ENABLED' : False,
'LOG_FILE': '%s/geoserver/data/logs/geoserver.log' %
os.path.abspath(os.path.join(PROJECT_ROOT, os.pardir)),
# Set to name of database in DATABASES dictionary to enable
'DATASTORE': '', #'datastore',
}}
This is the variable used in 2.8, In geonode 2.4 you'll find also occurence
of GEOSERVER_URL... anyway check all the settings file for http or https
strings.
See also the section about geoserver authentication:
http://docs.geonode.org/en/2.4.x/tutorials/install_and_admin/geonode_install/install_geoserver_application.html?highlight=authentication
The url http://localhost:8080 should not redirect.. only the urls on port
80 should be redirected by apache proxy... check all apache configuration,
the redirect section is like this
<VirtualHost *:80>
Redirect permanent / https://192.168.10.10/
</VirtualHost>
Amedeo
Il giorno mer 8 mag 2019 alle ore 13:32 Naresh N <naresh919 at gmail.com> ha
scritto:
> Dear Amedeo and All
>
> Please find the my earlier mail/post , kindly suggest to fix the issues
> and enable GeoNode with https
>
> Thanks & Regards,
> Naresh.N
>
> On Wed, May 8, 2019 at 10:13 AM Naresh N <naresh919 at gmail.com> wrote:
>
>> Dear Amedeo,
>>
>> Thanks for quick response.
>> I have changed the GEOSERVER_LOCATION
>> to
>> http://localhost:8080/geoserver
>>
>> but I am getting the error in while uploading layer "Tried to make a
>> GET request to
>> http://localhost:8080/geoserver/rest/workspaces/default.xml but got a
>> 404 status code:'
>>
>> I am having doubt in following
>> 1. http://localhost:8080/geoserver it is redirecting to http://<our
>> domain name>:443/geoserver/web/ and showing the following error
>>
>> *Bad Request*
>>
>> *Your browser sent a request that this server could not understand.
>> Reason: You're speaking plain HTTP to an SSL-enabled server port.
>> Instead use the HTTPS scheme to access this URL, please*
>>
>> The redirection must be from /etc/tomcat/server.xml of the following code but it is mentioned scheme as *https* but it is redirecting to http
>>
>> <Connector port="8080" protocol="HTTP/1.1"
>> connectionTimeout="20000"
>> URIEncoding="UTF-8"
>> scheme="https"
>> proxyName="<ourDomainName .. for example as* exmaple.com <http://exmaple.com/> *>"
>> proxyPort="443"/>
>>
>> 2. http://<ourdomainname>:8080/geoserver *is redirecting* to http://
>> <ourdomainname>:443/geoserver
>>
>> * but* http://<our domain name>:8080/geoserver/rest/workspaces/default.xml is not redirecting and as showing 404
>>
>>
>> Please help me to resolve the issue and understand the above two points
>>
>>
>> Thanks&Regards,
>>
>> Naresh.N
>>
>>
>>
>>
>>
>> On Tue, May 7, 2019 at 4:05 PM Amedeo Fadini <amefad at gmail.com> wrote:
>>
>>>
>>>
>>> Il giorno mar 7 mag 2019 alle ore 11:52 Naresh N <naresh919 at gmail.com>
>>> ha scritto:
>>>
>>>> Dear Amedeo,
>>>>
>>>> Thanks for your reply. I have changed as advised
>>>> [...]
>>>> but Now while uploading the data it is showing the error ' *Tried to
>>>> make a GET request to
>>>> http://<ourdomainname>:8080/geoserver/rest/workspaces/default.xml but got a
>>>> 404 status code*:'
>>>>
>>>> Nope, in this way yo're trying the server is trying to contact
>>> geoserver at the URL http://<oudomainname>:8080 and is good that you've
>>> a 404 error: port 8080 is not exposed to the external but is redirected by
>>> apache proxy (yes the geonode conf. seems correct).
>>> Port 8080 is only available for localhost as the default tomcat port,
>>> try to set
>>> GEOSERVER_LOCATION
>>> to
>>> http://localhost:8080/geoserver
>>>
>>> Amedeo
>>>
>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20190508/f6493755/attachment-0001.html>
More information about the geonode-users
mailing list