[GeoNode-users] Geonode-Project Inherited by Geonode Production
Julierme Pinheiro
juliermeopensourcedeveloper at gmail.com
Thu Aug 16 13:09:09 PDT 2018
Dear users and contributors,
I am still trying to figure out the way Apache2/geonode.conf is configured
in order to have geonode production inheriting the changes in
geonode-project, mainly ./geonode_proj/static_root/css/site_base.css and
./geonode_proj/templates/site_index.html and site_base.html.
Based on [1] I added the following lines to the geonode.conf which
default configuration is found in [2]:
Alias /static/ /home/geonode/geonode_proj/geonode_proj/static_root/
Alias /templates/ /home/geonode/geonode_proj/geonode_proj/templates/
Alias /site_index.html
/home/geonode/geonode_proj/geonode_proj/templates/site_index.html
Alias /site_base.html
/home/geonode/geonode_proj/geonode_proj/templates/site_base.html
############################### New Configuration for site inheritance
###############################
<Directory "/home/geonode/geonode_proj/">
Order allow,deny
Options Indexes FollowSymLinks
Allow from all
Require all granted
</Directory>
<Directory "/home/geonode/geonode_proj/geonode_proj/templates/">
Order allow,deny
Options Indexes FollowSymLinks
Allow from all
Require all granted
</Directory>
<Directory "/home/geonode/geonode_proj/geonode_proj/static_root/">
Order allow,deny
Options Indexes FollowSymLinks
Allow from all
Require all granted
</Directory>
<Directory "/home/geonode/geonode_proj/geonode_proj/">
<Files wsgi.py>
Order deny,allow
Allow from all
Require all granted
</Files>
Order allow,deny
Options Indexes FollowSymLinks
Allow from all
IndexOptions FancyIndexing
</Directory>
#######################################################################################################3
Within this configuration, geonode production is inheriting the
site_base.css in ./geonode-proj/static_root/css/, but site_index.html and
site_base.html.
I also have to mention that WSGI being used is production WSGIScriptAlias /
/home/geonode/my_geonode/my_geonode/wsgi.py.
My first guest is: although I have created all the Alias path (including
the templates directory) as showed above, Apache2 still looking for the
site_index.html and site_base.html in the production folder
/home/geonode/my_geonode/my_geonode/templates/.
One thing I can not understand is: I created the Alias for geonode-project
static_root and Apache is doing exactly what I want: getting the
site_base.css. But why is not doing for the geonode_project templates.
To test my first guest, I copied site_index.html and site_base.html to
production path /home/geonode/my_geonode/my_geonode/templates and the
response was a request to site_base.html, but site_index.html.
Lastly, I have to say that I have production and geonode-project in the
same virtualenv.
I am very confused. Could someone give me a hint on that please? And my
apologies for bringing this topic to discussion again.
Thank you for your time in advance
Kind regards
Julierme
[1] https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/modwsgi/
[2]
http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/setup_configure_httpd.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20180816/9b0764c1/attachment.html>
More information about the geonode-users
mailing list