Multiple ssl admin site using name-based virtual host

Author Message

Piero R.

Friday 16 October 2009 2:23:04 am

I'm trying to configure multiple EZ admin site in ssl mode using
name-based apache virtual host with unique ip:port combination
(i choose to use unique port), but i'm unable to log in the admin
interface. Error is "Query error: No database selected...".

My enviroment have site-admin1 at https port 50443 and
site-admin at https port 50444.

I've configured two virtual host in ssl mode:
<VirtualHost _default_:50444>
ServerName site-admin1.test.dom:50443
....
</VirtualHost>
<VirtualHost _default_:50443>
ServerName site-admin2.test.dom:50443
....
</VirtualHost>

I've configured ezPublis 4.1.3 setting/siteaccess as follow:
- settings/siteaccess/site-admin1/site.ini.append.php with options SSLPort=50443
- settings/siteaccess/site-admin1/site.ini.append.php with options SSLPort=50444

I've configured settings/override/site.ini.append.php with the following:
AvailableSiteAccessList[]=site-admin1
AvailableSiteAccessList[]=site-admin2
MatchOrder=host
HostMatchMapItems[]=site-admin1.test.dom;site-admin1
HostMatchMapItems[]=site-admin2.test.dom;site-admin2

When i try to log in https://site-admin1.test.com:50443/ the interface does not
authorize me and write some message on error.log file:

[ Oct 16 2009 11:11:34 ] eZMySQLDB:
Query error: No database selected. Query: SELECT contentobject_id, login, email, password_hash, password_hash_type
FROM ezuser
WHERE contentobject_id='10'
[ Oct 16 2009 11:11:34 ] eZMySQLDB:
Query error: No database selected. Query: SELECT contentobject_id, login, email, password_hash, password_hash_type
FROM ezuser
WHERE contentobject_id='10'
.........................

How to resolve ?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.