16  * For example, for a fictitious site installed at
     17  * http://www.drupal.org/mysite/test/, the 'settings.php'
     18  * is searched in the following directories:
     19  *
     20  *  1. sites/www.drupal.org.mysite.test
     21  *  2. sites/drupal.org.mysite.test
     22  *  3. sites/org.mysite.test
     23  *
     24  *  4. sites/www.drupal.org.mysite
     25  *  5. sites/drupal.org.mysite
     26  *  6. sites/org.mysite
     27  *
     28  *  7. sites/www.drupal.org
     29  *  8. sites/drupal.org
     30  *  9. sites/org

drupal.org.mysite doesn't get accessed from drupal.org/mysite

Comments

Anonymous’s picture

You haven't given much information about your environment so I'm just making a guess here.

I'm hosting my drupal sites on a shared linux environment using apache as the web server. I have a single drupal installation that is currently hosting 4 primary websites and a "staging" website that has 4 sub-directories under it.

For example:

http://www.domain1.com
http://www.domain2.com
http://staging.mydomain.com/site1
http://staging.mydomain.com/site2

I setup all of the directories within the sites directory according to the readme you referenced above.

To get the sub-directories (i.e. site1 and site2) to work, I had to create a symbolic link that pointed to the webroot, using the linux ln command:

ln -s . site1

An easier way to do this would be to create a virtual directory on the apache server and point it to your webroot. (Although in my situation I don't have access to the apache ocnfiguration files to be able to do that.)

I hope that helps.

seandunaway’s picture

can you please list the directories which you have in sites?

do you have a staging.mydomain.com.site1 and staging.mydomain.com.site2?

Anonymous’s picture

so my directory structure looks like this:

/sites/www.domain1.com
/sites/www.domain2.com
/sites/staging.mydomain.com.site1
/sites/staging.mydomain.com.site2

chx’s picture

Version: 4.7.0-beta6 » 4.7.0
Status: Active » Fixed

Steven redid lots of init stuff, so this is fixed if not, reopen please.

Anonymous’s picture

Status: Fixed » Closed (fixed)