Hi all!
A have some problems with using apache::dbi and name virtual hosts.
I have four sites, each having its own login into database.
All of them listen to one ip using NameVirtualHost directive
Each site has a startup script with
Apache::DBI->connect_on_init
It seems to me that apache::dbi is not working properly, though in logs
I can see that some database handlers are reused as it should be.
2228 Apache::DBI need ping: yes
2228 Apache::DBI already connected to '...'
2178 Apache::DBI disconnect (overloaded)
2299 Apache::DBI disconnect (overloaded)
I've also noticed that database connections number is not equal to httpd
process count and not even equal to 4xhttpd process count (4 sites)
Am I doing something wrong? Can Apache::DBI hold several handlers for
one httpd process? I suspect that user connects to different processes
and the handler (dbname/username/pass) do not always match.