Just some questions about yaws and mnesia.

Is it possible to have one mnesia database (node?) per virtual host ?
The goal is to have a database per website. It's a bit dangerous to regroup all the table of all websites in one big database.

The perfect thing will be to enter the mnesia directory and a node name into the virtualhost definition in yaws.conf like this :

<server www.mydomain.org>
   port = 80
   listen =
   docroot = /var/yaws/www/website1
   mnesia_dir = /var/yaws/www/website1/mnesia_scheme
   mnesia_node_name website1

Where "mnesia_dir" is the scheme directory that contains the database and "mnesia_node_name" the name of the mnesia node.