Skip to main content
edited tags
Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

There is absolutely no problem to have multi sites, where:

  • domain1.com points to site A
  • domain2.com points to site B

But I want to have multi-site setup, where:

  • domain1.com points to site A
  • domain1.com/blabla points to site B

I was doing everything to solve it, for example using directory structure like that:

  • domain1.com
  • domain1.com.blabla

or using file sites.php with content:

$sites = array(
'domain1.com' => 'domain1.com',
'domain1.com' => 'domain1.com.blabla',
);

Nothing works, site 'domain1.com' takes all traffic.

FYI:

Please help!

There is absolutely no problem to have multi sites, where:

  • domain1.com points to site A
  • domain2.com points to site B

But I want to have multi-site setup, where:

  • domain1.com points to site A
  • domain1.com/blabla points to site B

I was doing everything to solve it, for example using directory structure like that:

  • domain1.com
  • domain1.com.blabla

or using file sites.php with content:

$sites = array(
'domain1.com' => 'domain1.com',
'domain1.com' => 'domain1.com.blabla',
);

Nothing works, site 'domain1.com' takes all traffic.

FYI:

Please help!

There is absolutely no problem to have multi sites, where:

  • domain1.com points to site A
  • domain2.com points to site B

But I want to have multi-site setup, where:

  • domain1.com points to site A
  • domain1.com/blabla points to site B

I was doing everything to solve it, for example using directory structure like that:

  • domain1.com
  • domain1.com.blabla

or using file sites.php with content:

$sites = array(
'domain1.com' => 'domain1.com',
'domain1.com' => 'domain1.com.blabla',
);

Nothing works, site 'domain1.com' takes all traffic.

FYI:

  • I'm using nginx.
  • I'm using Drupal 7.
  • I do not want to use the module Domain as I want to have separated databases.

Please help!

Source Link

Multi-site with two sites sharing the same domain?

There is absolutely no problem to have multi sites, where:

  • domain1.com points to site A
  • domain2.com points to site B

But I want to have multi-site setup, where:

  • domain1.com points to site A
  • domain1.com/blabla points to site B

I was doing everything to solve it, for example using directory structure like that:

  • domain1.com
  • domain1.com.blabla

or using file sites.php with content:

$sites = array(
'domain1.com' => 'domain1.com',
'domain1.com' => 'domain1.com.blabla',
);

Nothing works, site 'domain1.com' takes all traffic.

FYI:

Please help!