#define a pattern for the host url finding # ex : http://xxx.yyy.zzz.framboise.tld # %% => % sign () # %0 => nom de domaine + tld => framboise.home # %1 => tld => home # %2 => nom de domaine sans tld => framboise # %3 => nom de sous-domaine de niveau 1 => zzz # %4 => nom de sous-domaine de niveau 2 => yyy # %5 => nom de sous-domaine de niveau 3 => xxx # etc. (numérotation de droite à gauche) # Configuration pour le domaine framboise.local (défini avec avahi sur le réseau local) $HTTP["host"] =~ "(^|\.)framboise\.local$" { include "include/config.conf" evhost.path-pattern = document-root + "/%3" } # Configuration pour le domaine domaine.tld : $HTTP["host"] =~ "(^|\.)domaine\.tld$" { include "include/config.conf" evhost.path-pattern = document-root + "/%3" } # Configuration pour le domaine localhost : $HTTP["host"] =~ "(^|\.)localhost$" { include "include/config.conf" evhost.path-pattern = document-root + "/%2" }