We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3677
    • 130 Posts
    I have multiple site contexts running in 1 install of Revolution.

    I can set site_status offline for contextA and still preview pages as long as I am logged into the manager as admin.
    When I do the same for contextB, I am unable to preview pages. I get sent to the unavailable page as if I were not logged in.

    I’ve checked and both of my contexts have the exact same access permissions:

    anonyomous 9999 Load only
    Administrator 0 Administrator

    Seems like a permissions problem but I’m not sure where to look.
    Any ideas?

    Thanks,
    -Brian
      • 22303 MODX Staff
      • 10,725 Posts
      Please provide at least what version of MODX you are using. Also, there are a lot of ways to load Contexts so information about how you are using/accessing these Contexts would be helpful...
        • 3677
        • 130 Posts
        Hi Jason,

        I’m running Revolution 2.08 traditional. The contexts are all separate domains with a plugin to identify hostname and direct the visitor to the right site context like so:
        switch ($modx->getOption('http_host')) {
        
            #case 'www.nextsite.com':
                #$modx->switchContext('nextsite.com');
                #break;



        The domains are setup as add-on domains to my main Cpanel account. In general all of the site contexts are working, but it would be nice to be able to try out page edits while the site is offline. What other details can I provide?

        Thanks,
        -Brian