By rp7 on
Trying to get a drupal multisite installation to work on a test server (linux), which has no domain name coupled to it. It can only be reached via IP.
Current set-up:
(root containing drupal files)
-- site
---- default
------ settings.php
---- site1
------ settings.php
---- site2
------ settings.php
The documentation (as well as http://www.drupalcoder.com/story/205-drupal-multisite-in-subfolders) always points to the domain 'www.example.com'. Thus making it (for subfolders):
(root containing drupal files)
-- site
---- default
------ settings.php
---- myexample.com.site1
------ settings.php
---- myexample.com.site2
------ settings.php
How would I be doing this with only IP? (and no domain)
Comments
Possible
It should be possible if your make your file structure the following:
(root containing drupal files)
-- site
---- default
------ settings.php
---- 12.34.56.78.site1
------ settings.php
---- 12.34.56.78.site2
------ settings.php
you would then access the sites by
12.34.56.78
12.34.56.78/site1
12.34.56.78/site2
"Just as diamonds are forever, Google Cache is too"
"If all else fails pray and hope to Dries it works"
"What in Dries' name were you thinking?"
What does sites.php look like?
I'd like to setup the same environment, how would the sites.php file look?
$sites['###.###.###.###/site1'] = '###.###.###.###.site1';
I tried the above without success.
thanks,
If it's a test server, have
If it's a test server, have you considered adding an entry to your hosts files:
#.#.#.# site1
#.#.#.# site2
And then setting up virtual hosts to listen for those hostnames?
Ezra Wolfe
DLC Solutions
EthosCE
oops (please erase)
oops (please erase)