Loading ...
Sorry, an error occurred while loading the content.

67595Re: Apache::DBI and NameVirtualHost

Expand Messages
  • Randal L. Schwartz
    Oct 26, 2005
    • 0 Attachment
      >>>>> "gb" == gb <gb@...> writes:

      gb> Each site has a startup script with
      gb> Apache::DBI->connect_on_init

      This may be your problem. If the connection string is identical,
      Apache::DBI caches it as "the same connection". But if you then
      do something unique per virthost in your connect_on_init, you're
      working against the system there, and you get broken results.

      One solution is to ensure that you use a different username/password
      per virthost, so that the connection string varies.

      --
      Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
      <merlyn@...> <URL:http://www.stonehenge.com/merlyn/>
      Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
      See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
    • Show all 6 messages in this topic