I tried it once again at home this time with the latest release (2.0.6).
I created a second context called "
web2" with the following setting:
base_url "/"
http_host "test2"
site_name "My second context"
site_start "2"
site_url "http://test2/"
My virtual host is as follow:
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "d:/SVN/TEST/"
ServerName test2
ErrorLog "logs/test2-error.log"
CustomLog "logs/test2-access.log" common
<Directory "d:/SVN/TEST/">
Options Indexes FollowSymLinks
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>
</VirtualHost>
To switch context i use this plugin code:
<?php
if($modx->context->get('key') != "mgr"){
switch($modx->getOption('http_host')){
case 'test2:80':
case 'test2':
$modx->switchContext('web2');
break;
default:
break;
}
}
Permissions for anonymous is set for both context to:
contextname - Member 9999 - Load Only
I did not load any custom template and use the default basic template with MODx and the resources content (only 2 resources that are site_start foreach context) are just "lorem Ipsum".
I tried it with FF after a clear cache (with all FF extensions disabled), it show me a 404 error and here is the log:
127.0.0.1 - - [20/Dec/2010:20:28:14 +0100] "GET / HTTP/1.1" 404 146
Then i did the same with Opera (but i manually cleared the cache each time before reload) it succeed each times:
127.0.0.1 - - [20/Dec/2010:20:28:30 +0100] "GET / HTTP/1.1" 200 849
Now, with a clean FF profile, it succeed as well:
127.0.0.1 - - [20/Dec/2010:21:25:28 +0100] "GET / HTTP/1.1" 200 849
So it’s an issue with FF, on 2 different hardware and install.
Now it would not be such a big issue if there was not any other problem but it gets weirder.
If i drop a [[Login]] Component in the web context it works, but it doesn’t in the second context. At least not entirely.
If i enter false credential it shows the correct error message, but i enter the right one, it just reload the page (or go to the specified loginResourceId) but the user is not logged in and after further control hasNoSessionContext... worse, it he stays as an Anonymous user...
And this problem is for every browser tested.
I can provide more details if necessary, i really need help on this issue.
A Drowning Modxer