# sous-domaines dolibarr server { listen 80; server_name ~^(?Pdolibarr)\.mondomaine\.tld$; root /var/www/html/$sub/htdocs; location / { index index.php index.html index.htm; try_files $uri $uri/ =404; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/var/run/php/php7.4-fpm.sock; } location ~ /\.ht { deny all; } }