0

I have to set a the same site on two different subdomains. I have the two subdomains included in the config.php. But that doesn't seem to work. Is there any other configurations I need to set?

// internal
'sub1.website.com' => array(
    'overridePhpSessionLocation' => true,
    'environmentVariables' => array(
        'siteUrl' => 'https://sub1.website.com/',
        'fileSystemPath' => '/var/www/html/'
    )
),
// external
'sub2.website.com' => array(
    'overridePhpSessionLocation' => true,
    'environmentVariables' => array(
        'siteUrl' => 'https://sub2.website.com/',
        'fileSystemPath' => '/var/www/html/'
    )
),
1

Are these two sites exactly the same, and this is just an alias? If so, you don't need any configuration, just point the DNS to the right place, and it'll work.

If not, can you provide more details on what you're trying to achieve?

| improve this answer | |
  • Bingo. Sounds like a vhost/configuration issue. – RitterKnight Dec 12 '15 at 17:54
  • Yes this is two are exactly the same and not an alias. I would have to find out exactly what's going on in the setup but basically the one subdomain is an internal (intranet) site and the other is behind a single sign on open to external connections. – julzmon Dec 14 '15 at 2:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.