<div dir="ltr"><div>Dear users and contributors,</div><div><br></div><div>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.</div><div><br></div><div>Based on [1]  I added the following lines to  the geonode.conf which default configuration is found in [2]:</div><div><br></div><div>    Alias /static/ /home/geonode/geonode_proj/geonode_proj/static_root/<br>    Alias /templates/ /home/geonode/geonode_proj/geonode_proj/templates/<br>    Alias /site_index.html /home/geonode/geonode_proj/geonode_proj/templates/site_index.html<br>    Alias /site_base.html /home/geonode/geonode_proj/geonode_proj/templates/site_base.html</div><div><br></div><div><br></div><div>############################### New Configuration for site inheritance ###############################<br>    <Directory "/home/geonode/geonode_proj/"><br>        Order allow,deny<br>        Options Indexes FollowSymLinks<br>        Allow from all<br>        Require all granted<br>    </Directory><br><br>    <Directory "/home/geonode/geonode_proj/geonode_proj/templates/"><br>        Order allow,deny<br>        Options Indexes FollowSymLinks<br>        Allow from all<br>        Require all granted<br>    </Directory><br><br>    <Directory "/home/geonode/geonode_proj/geonode_proj/static_root/"><br>        Order allow,deny<br>        Options Indexes FollowSymLinks<br>        Allow from all<br>        Require all granted<br>    </Directory><br><br>    <Directory "/home/geonode/geonode_proj/geonode_proj/"><br>         <Files wsgi.py><br>             Order deny,allow<br>             Allow from all<br>             Require all granted<br>         </Files><br><br>        Order allow,deny<br>        Options Indexes FollowSymLinks<br>        Allow from all<br>        IndexOptions FancyIndexing<br>    </Directory><br><br>#######################################################################################################3<br></div><div><br></div><div>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.</div><div><br></div><div>I also have to mention that WSGI being used is production WSGIScriptAlias / /home/geonode/my_geonode/my_geonode/wsgi.py.</div><div><br></div><div></div><div>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/. <br></div><div><br></div><div>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.  <br></div><div><br></div><div>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.</div><div><br></div><div>Lastly, I have to say that I have production and geonode-project in the same virtualenv. <br></div><div><br></div><div>I am very confused. Could someone give me a hint on that please? And my apologies for bringing this topic to discussion again.</div><div><br></div><div>Thank you for your time in advance</div><div><br></div><div>Kind regards</div><div><br></div><div>Julierme<br></div><div><br></div><br><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>[1] <a href="https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/modwsgi/">https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/modwsgi/</a></div><div>[2] <a href="http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/setup_configure_httpd.html">http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/setup_configure_httpd.html</a><br></div></div>