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 :
port = 80
listen = 0.0.0.0
docroot = /var/yaws/www/website1
mnesia_dir = /var/yaws/www/website1/mnesia_scheme
Where "mnesia_dir" is the scheme directory that contains the database and "mnesia_node_name" the name of the mnesia node.