Forums / Setup & design / Siteaccess overrides not working

Siteaccess overrides not working

Author Message

Michael Caplan

Saturday 14 June 2003 6:53:46 am

Hi,

I am working on an install of eZ Publish 3.1 RC2. I have configured the SiteAccessSetting in the override site.ini.append so that it matches a site on "host" and the hostmatchtype is "map." I then configured RequireUserLogin to false. Within the SiteAccess overrides for the two sites I map to (demo and admin), I have configured the site.ini.append files so that the "admin" site RequireUserLogin=true, and the "demo" site is RequireUserLogin=false.

The problem I have is this: the overrides for the SiteAccess files (site.ini.append) are not taking. In this case, when accessing the admin site, I am not prompted for a user login screen on first visit. If I change the settings/override/site.ini.append file to RequireUserLogin=true, the reverse happens: I am promoted for a login for both sites. Is this a bug, or am I missing something here?

Thanks,

Michael

[SiteAccessSettings]
CheckValidity=false
RequireUserLogin=false
MatchOrder=host
HostMatchType=map
HostMatchMapItems[]=ias;demo
HostMatchMapItems[]=admin-ias;admin

Jo Henrik Endrerud

Saturday 14 June 2003 12:43:50 pm

Hi Michael

No, this is not a bug. The reason for this behaviour is because the settings/override/site.ini.append file has the highest priority of the configuration files. If a setting is found here, it will not even bother by checking the site access site.ini.append file.

If you want a setting different for different site accesses you should not have the variable in the override site.ini.append file

Jo Henrik Endrerud | System Developer @ Seeds Consulting | http://www.seeds.no

Michael Caplan

Saturday 14 June 2003 5:00:08 pm

That makes perfect sense. I must of overlooked that in the manual.

Thanks!