I've been reading posts all day trying to find a solution and can't seem to find one. Here's the set up:

drupal is installed in
/var/www/html/www.mysite.com/drupal/sites/default/settings.php

the url for it is: http://drupal.mysite.com, or I can use http://www.mysite.com/drupal

this loads just find, no problems at all.

I've followed the steps I've found in other posts as well as the install directions for a multi site and what I've done looks something like this for a test multi site

/drupal/sites/example.com/settings.php

Here's where I'm not sure if I'm doing it correctly. In the install.txt it says this:

Sites do not each have to have a different domain. You can use
subdomains and subdirectories for Drupal sites also. For example,
example.com, sub.example.com, and sub.example.com/site3 can all be
defined as independent Drupal sites. The setup for a configuration
such as this would look like the following:

sites/default/settings.php
sites/example.com/settings.php
sites/sub.example.com/settings.php
sites/sub.example.com.site3/settings.php

When searching for a site configuration (for example
www.sub.example.com/site3), Drupal will search for configuration
files in the following order, using the first configuration it finds:

sites/www.sub.example.com.site3/settings.php
sites/sub.example.com.site3/settings.php
sites/example.com.site3/settings.php
sites/www.sub.example.com/settings.php
sites/sub.example.com/settings.php
sites/example.com/settings.php
sites/default/settings.php

So, if I'm using drupal.mysite.com as the url that points to /drupal/sites/default/settings.php

is there a variation of drupal.mysite.com that would correctly point to drupal/sites/example.com/settings.php?

i've tired things like drupal.mysite.com/sites/example.com, etc... but it loads the defualt page not found and every variation I tried didn't work.

Please let me know what steps i'm doing wrong or missing.

Thanks in advance,
bisprogrammer

Comments

alias420’s picture

I'm not sure I totally understand your question. But maybe this will help.

/sites/drupal.mysite.com/settings.php would be used for http://drupal.mysite.com
/sites/drupal.mysite.com.example.com/settings.php would be used for http://drupal.mysite.com/example.com
/sites/example.com/settings.php would be used for http://example.com

if you wanted example.com an drupal.mysite.com to use the same file you could use a symlink on the server or just copy over example.com's settings.php into drupal.mysite.com

Does this answer your question?

bisprogrammer’s picture

thanks for the quick reply, but I can't get that to work. I'll try to explain it again, the default page (url: drupal.mysite.com) is located in /drupal/sites/default/settings.php

orignally the url was www.mysite.com/drupal, but my end-goal in this it to manage many different county websites with a url that will be similar to countyname.mysitename.com, or mysitename.countyname.com, or www.mysitename.com/countyname... I just need to figure out how to make it correctly point to the other folders in the /sites folder which i'm having difficulty doing.

the example site I've made is in /drupal/sites/example/settings.php

what url would point to it? does it need it's own url? the install.txt said you didn't have to have it. I'm not exactly sure what symlink does, although I've seen it mentioned in the other posts. Am I missing a step?

alias420’s picture

the example site I've made is in /drupal/sites/example/settings.php

what url would point to it?

You would have to enter the site via the URL: http://example (which would involve tricking your DNS with a hosts file)

The subdirectories under /sites are the names of the urls using a dot instead of slash

http://www.mysitename.com/countyname would be :
/drupal/sites/www.mysitename.com.countyname/settings.php

http://countyname.mysitename.com would be:
/drupal/sites/countyname.mysitename.com/settings.php

You don't "make it correctly point to the other folders". it already uses the correct folder according to the URL if the correct folder doesn't exist it uses /drupal/sites/default/settings.php.

astra’s picture

If you want your county site as a subfolder of main site, for example, the url is www.mysitename.com/countyname, then you may create /drupal/sites/mysitename.com.countyname/settings;

If you want your county site as a subdomain, for example, the url is countyname.mysitename.com, then you need create /drupal/sites/countyname.mysitename.com/settings;

ravenite@gmail.com’s picture

is it possible to have the new site (subdomain or whatever) pointing to a specific node?

i have mutlisite running fine, but the additional sites just point to the frontpage and i'd like to change that. looking thru settings.php and i dont see a conf_variable or anything else to where i can point it to somewhere else.

thanks.