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.

Cannot access second MSM site after first is made live

March 05, 2012 11:50am

Subscribe [3]
  • #16 / Mar 12, 2012 12:15pm

    Robin Sowell

    13255 posts

    Chris- you’ve got it exactly.  I think the tip still holds true (it’s actually how the EL sites are setup)- but it does have that limitation for when one site is offline and the other(s) isn’t.  (Which I don’t believe ever happens for us- if we take down 1 domain, we’ve always taken all of them offline, hence no problem.)

    I think the best option would be using admin.php to have a separate backend login for each domain if the offline issue is causing a problem (or at least, it could be used as a short term solution).

    But yes- it basically boils down to how cookie setting works and the fact you can’t set a cookie on domain2 when you’re on domain1.

  • #17 / Mar 12, 2012 12:31pm

    Chris Arnold

    201 posts

    Glad to figure this out. It seems like I have the index.php and admin.php set fine on the subdomain but I’m getting the offline template instead of the login page. Is it possible to direct the login to /system and not use admin.php? This is how domain1 is setup, but it looks like I can’t get to domain2 without using the admin.php URL.

    Update: “getting the offline template” when I try to ‘fake’ the /system login on domain2 versus the admin.php address.

  • #18 / Mar 12, 2012 2:21pm

    Robin Sowell

    13255 posts

    I’m not sure how your site is setup.  On one of mine where I can multi-host, the second domain would end up being based off a subdomain.  So file structure below root like:

    index.php -> main site index.php page
    system -> system folder
    second_site -> is a subdomain- second_site.domain1.com which they will then point domain2 to.

    Once they point domain2 to the subdomain?  I can still access pages at either domain2.com or second_site.domain1.com or domain1.com/second_site/

    In the above setup?  Logging into the backend WOULD see me as logged in on second_site.domain1.com or domain1.com/second_site/ - and this issue would be moot unless I was going to domain2.com- in which case I’d typically use an admin.php in second_site because only files in that folder are accessible with domain2.

    BUT I am not all that up on the different ways servers might be setup to handle multiple domains, so I can’t swear yours would work the same way. 

    Though just thinking it through- if the main site was the subdomain with the system folder in it- it could hit the system folder via domain1.com/system and then the second site could hit it domain2.com/second_site/system.  But if you added another subdomain and pointed domain3 at it- couldn’t use domain3 and get to system, would need an admin.php.

    And that was long!  But I think it just boils down to- if the system folder was a simple file system.html- can you get to it using the subdomain url you want?  If so- shoud be easy to fake /system login (because you aren’t faking it).  Otherwise- not that I know of and I’d be a little leery of server magic that would make that happen.  Which is not to say definitively that it’s impossible. 

  • #19 / Mar 13, 2012 6:22pm

    Chris Arnold

    201 posts

    Thanks Robin. Always helpful. This is a great one to bookmark for MSM setups.

  • #20 / Mar 15, 2012 2:13pm

    Sean C. Smith

    3818 posts

    Chris,

    Glad to see that Robin was able to get you all sorted out. Is there anything else I can assist you with?

    Sean

  • #21 / Mar 15, 2012 2:17pm

    Chris Arnold

    201 posts

    All set.

  • #22 / Mar 16, 2012 4:44pm

    Dan Decker

    7338 posts

    Hi Chris,

    I’m glad Robin was able to get you the info you needed.

    Is there anything else we can assist you with?

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases