Skip to content

Instantly share code, notes, and snippets.

@basz
Created September 18, 2012 20:07
Show Gist options
  • Select an option

  • Save basz/3745519 to your computer and use it in GitHub Desktop.

Select an option

Save basz/3745519 to your computer and use it in GitHub Desktop.
<?php
return array(
'SpeckMultisite' => array(
'Session' => array(
'domainMap' => array(
'groups' => array(
'jj' => array(
'master' => 'rattletrap-juffrouwjansen-hoofddorp.nl',
)
),
'hosts' => array(
'rattletrap-juffrouwjansen-winkels.nl' => 'jj',
'rattletrap-juffrouwjansen-hoofddorp.nl' => 'jj',
'rattletrap-juffrouwjansen-studio.nl' => 'jj',
),
),
'sessionManagerConfiguration' => array(
//'cookieDomain' => '.tld.nl',
),
),
'DomainResolver' => array(
'domainMap' => array(
/* order is important */
'rattletrap-juffrouwjansen-hoofddorp.nl' => 'HOOFDDORP',
'rattletrap-juffrouwjansen-winkels.nl' => 'HOOFDDORP',
'rattletrap-juffrouwjansen-studio.nl' => 'STUDIO',
)
)
)
);
Rattletrap:~ bas$ curl -I rattletrap-juffrouwjansen-studio.nl
HTTP/1.1 302 Found
Date: Tue, 18 Sep 2012 20:09:47 GMT
Server: Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.1c DAV/2 PHP/5.3.16
X-Powered-By: PHP/5.3.16
Set-Cookie: PHPSESSID=k4fptn018714n0r9fm4od11d72; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Location: http://rattletrap-juffrouwjansen-hoofddorp.nl:80/?requestMasterSessUri=http://rattletrap-juffrouwjansen-studio.nl:80/
Content-Type: text/html
Rattletrap:~ bas$ curl -I rattletrap-juffrouwjansen-hoofddorp.nl
HTTP/1.1 200 OK
Date: Tue, 18 Sep 2012 20:09:55 GMT
Server: Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.1c DAV/2 PHP/5.3.16
X-Powered-By: PHP/5.3.16
Set-Cookie: PHPSESSID=j72950k1hmd6rj9begqbhfms27; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment