Giter Club home page Giter Club logo

Comments (6)

gildeluermoz avatar gildeluermoz commented on August 22, 2024 1

Ok ! Ce n'est pas moi qui ai fait la conf apache sur ce serveur et j'ai du la décortiquer un peu. Il manquait le IncludeOptional /etc/apache2/conf-available/geonature.conf dans le Vhost.
Merci Camille.

from geonature.

camillemonchicourt avatar camillemonchicourt commented on August 22, 2024

Il est indiqué dans le changelog de la 2.12.0, mais aussi dans la doc qui a été mise à jour, comment customiser les fichiers statiques désormais : https://docs.geonature.fr/admin-manual.html#customisation

Il faut bien mettre ton fichier customisé dans geonature/custom/images/logo_structure.png.

C'est le cas sur le serveur de démo et ça fonctionne bien :

image

image

from geonature.

gildeluermoz avatar gildeluermoz commented on August 22, 2024

Après migration de la 2.11.2 vers 2.12.3, le fichier du logo de la structure est bien migré vers geonature/custom/images/logo_structure.png mais c'est le logo par défaut qui s'affiche (image : MON LOGO)

Oui, j'ai bien vu cette doc, et comme précisé ci-dessus, le fichier du logo customisé est bien dans geonature/custom/images/logo_structure.png mais il n'est pas pris en compte.

Je me demande si le soucis ne vient pas de la conf apache. Pourtant j'utilise bien la conf fournie par défaut. Avec ceci :

# CUSTOM STATIC FILE
RewriteEngine On
# Define STATIC_FILE environment variable
RewriteRule "^/geonature/api/static/(.*)$" - [env=STATIC_FILE:$1,chain]
# Test if custom static file exists (not tested for non static file thanks to previous chain flag)
RewriteCond "/home/bradmin/geonature/custom/%{ENV:STATIC_FILE}" -f
# If so, redirect to custom static file instead of default static file
RewriteRule "^/geonature/api/static/(.*)$" "/home/bradmin/geonature/custom/$1" [L]
<Directory "/home/bradmin/geonature/custom">
    Require all granted
    AllowOverride None
    Options -Indexes
</Directory>

from geonature.

gildeluermoz avatar gildeluermoz commented on August 22, 2024

Si ça fonctionne chez vous, il doit y avoir qq chose qui ne va pas de mon coté. Je rechecke tout ça.

from geonature.

camillemonchicourt avatar camillemonchicourt commented on August 22, 2024

Oui j'ai bien ça aussi dans le fichier /etc/apache2/conf-available/geonature.conf, lui-même appelée/incluse dans /etc/apache2/sites-available/geonature-le-ssl.conf :

# CUSTOM STATIC FILE
RewriteEngine On
# Define STATIC_FILE environment variable
RewriteRule "^/geonature/api/static/(.*)$" - [env=STATIC_FILE:$1,chain]
# Test if custom static file exists (not tested for non static file thanks to previous chain flag)
RewriteCond "/home/demo/GeoNature/custom/%{ENV:STATIC_FILE}" -f
# If so, redirect to custom static file instead of default static file
RewriteRule "^/geonature/api/static/(.*)$" "/home/demo/GeoNature/custom/$1" [L]
<Directory "/home/demo/GeoNature/custom">
    Require all granted
    AllowOverride None
    Options -Indexes
</Directory>

from geonature.

camillemonchicourt avatar camillemonchicourt commented on August 22, 2024

Ah oui en effet si le vhost n'incluait pas la conf disponible, alors cette dernière n'est pas utilisée et donc ne sert à rien.

from geonature.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.