We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14867
    • 65 Posts
    Hi.. i installed revolution today and i like it..
    its slower than evolution but ok..

    i wanted to try the context feature but it doesnt work for me.
    what i want:
    www.mydomain.de and subdomain.mydomain.de working with modx.

    1.so i created a secont context (or better a third one) and entered teh variables i need.
    --> picture

    2.i edited the index.php:

    /* Initialize the default 'web' context */
    //$modx->initialize('web');
    
    /* setup for multiple domains */
    switch(strtolower(MODX_HTTP_HOST)) {
       case 'www.mydomain.de:80':
       case 'www.mydomain.de':
    
          $modx->initialize('web');
          break;
       case 'subdomain.mydomain.de:80':
       case 'subdomain.mydomain.de':
    
          $modx->initialize('amos');
          break;
      default:
          // by default / if no other rule can be applied, load 'web' context
          $modx->initialize('web');
          break;
    }


    what i get is a 503
    what am i doing wrong ?
      42
      • 14867
      • 65 Posts
      ok, i just checked the hoster and it was their problem.
      sorry for posting garbage. can be deleted or used as a tutorial smiley
        42