I'm setting up access to a Drupal 7 site. The site sits alone on a box that answers to a number of domains and that number is likely to grow. What I'd like to do is to tell Drupal to load the site regardless of which actual domain brought us to the box (the rest of the URL will always be the same, of course). Currently most of those domains send me to the install page.
The problem is the lack of a directory (symlink) in the sites/
directory.
I can probably rewrite requests coming through alternate domains in Nginx, but I'm wondering whether there's an application level answer. As it stands right now, accessing the box/site by any domain other than the canonical domain sends me to the install page.
Is there anything I can do?
sites/all
. I need any request answered by the box to know to look in our directory. Is there any way to use a wildcard? Maybe something like this:$sites['*'] = 'mycanonicaldomain.com'
? – Rob Wilkerson$sites
array based on that? If that doesn't work, you'll probably need to patchconf_path
to let it know about the wildcard char (definitely doable though) – Clive