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.
Greg Burri wrote:
> Just some questions about yaws and mnesia.
> Is it possible to have one mnesia database (node?) per virtual host ?
> <server http://www.mydomain.org <http://www.mydomain.org>>
> port = 80
> listen = 0.0.0.0 <http://0.0.0.0>
> docroot = /var/yaws/www/website1
> mnesia_dir = /var/yaws/www/website1/mnesia_scheme
> mnesia_node_name website1
Not doable with Mnesia, there is no virtualization
support in mnesia, you'll have to use the same Mnesia
instance for all virt hosts.
Claes Wikstrom -- Caps lock is nowhere and
http://www.tail-f.com -- everything is under control
cellphone: +46 70 2097763