ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

MSN template render and site offline problem

November 08, 2007 1:18pm

Subscribe [2]
  • #1 / Nov 08, 2007 1:18pm

    I have MSM setup for 4 different sites
    The first being http://www.mysite.ie and then 3 subdomains one.mysite.ie, two.mysite.ie, three.mysite.ie.

    I installed the only instance of the system folder under the main domain and then created 3 seperate folders for the subdomains and referenced them using .htaccess. In each of those 3 folders I added the amended path.php and index.php

    I can log in through the main site and access all three sites no problem

    The problem lies here when I goto render a template from a sub domain and I get the site offline template. I can view rendered templates on the main domain


    I am using Cookies and Sessions for the CP
    I am using Cookies for the user
    I have set the Cookie domain for all 4 sites as .mysite.ie

    - If I set system and site to offline then in my sitestats both are showing as offline
    - If I set system on and site to offline then in my sitestats system is shown as Online and Site as offline.
    - If I set system off and site to online then in my sitestats both are showing as offline.

    EE Build:  20070918
    Engine hosting
    Thanks

  • #2 / Nov 08, 2007 1:58pm

    Lisa Wess

    20502 posts

    Hi, John—in order to view those sites you will actually need to login to those sites, as the browser can’t set cookies for other domains.  You can do this by setting up an admin.php in each of those subdomains directories and logging in via that URL.  See these docs. =)

  • #3 / Nov 08, 2007 7:50pm

    John Henry Donovan

    12339 posts

    Thanks for the tip. I didn’t actually go that route as none of the 3 sites I added the admin.php to let me login but just refreshed the login page.

    Anyways to fix the problem I first logged into my main sites cp panel and then went to http://www.mysite.ie/index.php/member/login/ and logged into the front end.

    That did the trick luckilly as I sold the idea of the MSM to the client as the belief that you did not have to login to multiple site cp’s but from one place. Thanks for putting me on the right track though.

  • #4 / Nov 08, 2007 7:51pm

    John Henry Donovan

    12339 posts

    Oh look now I need management for multiple personalities!

  • #5 / Nov 08, 2007 7:52pm

    Lisa Wess

    20502 posts

    They’re all the same CP, actually, but since the browser only looks at cookies for that domain, and not cross-domain cookies (security, you know?), you have to set the cookie for each domain. 

    If it was refreshing from admin.php and not logging you in, then your cookie settings need to be modified for that Site. =)

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases