When a directory becomes a subdomain

Quand on veut que chaque sous-répertoire devienne directement un sous-domaine : voici le “virtualhost” a ajouté dans le fichier Apache :

<VirtualHost XXX.XXX.XXX.XXX>
ServerAdmin webmaster@domain.com
DocumentRoot /home/domain/www ServerName www.domain.com
ServerAlias domain.com *.domain.com
VirtualDocumentRoot /home/domain/%-3.0
UseCanonicalName off
CustomLog /home/domain/logs/access_logs combined
ScriptAlias /cgi-bin/ /home/domain/cgi-bin/
User domain Group users

Near Future Posts plugin

For an external development I needed to be able to display future posts but not all future posts. I started with the future posts plugin of Michael Moncur but it doesn’t fit to what I really needed.

The posts to be displayed should have been maximum 20 days in the future…

So the plugin is now able to display the future posts of ‘x’ days (defined via an simple administration screen).