Hey
After looking through tons of guides and howtoes I'm still nowhere near a working solutions.
I have added the following structure to my sites folder:
/sites/all/modules /sites/all/themes
/sites/default/ /sites/default/files/ /sites/default/settings.php
/sites/site1.com/files/ /sites/site1.com/modules/ /sites/site1.com/themes/ /sites/site1.com/tmp/ /sites/site1.com/settings.php
I have created at vhost file for apache2 with the following settings:
<VirtualHost *:80> ServerName site1.com DocumentRoot "/var/www/localhost/htdocs/drupal/" ServerAlias site1.com
<Directory "/var/www/localhost/htdocs/drupal/"> Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all DirectoryIndex index.php <FilesMatch "^.ht"> Order allow,deny Deny from all </FilesMatch>
</Directory> </VirtualHost>
My problem is that drupal appears to ignore my settings file under site1.com. So I get the default site even if i access the site using 'www.site1.com'.
Am i missing something obvious here?
All help would greatly be appreciated.
Regards Joe
Quoting Johannes Skov Frandsen joe@omesc.com:
Am i missing something obvious here?
Have you executed http://site1.com/install.php? The mutltiple sites settings don't get installed by default.
Earnie -- http://for-my-kids.com
You went to
www.site1.com
while you defined site1.com. I'm not sure if that would work.
Johannes Skov Frandsen wrote:
Hey
After looking through tons of guides and howtoes I'm still nowhere near a working solutions.
I have added the following structure to my sites folder:
/sites/all/modules /sites/all/themes
/sites/default/ /sites/default/files/ /sites/default/settings.php
/sites/site1.com/files/ /sites/site1.com/modules/ /sites/site1.com/themes/ /sites/site1.com/tmp/ /sites/site1.com/settings.php
I have created at vhost file for apache2 with the following settings:
<VirtualHost *:80> ServerName site1.com DocumentRoot "/var/www/localhost/htdocs/drupal/" ServerAlias site1.com
<Directory "/var/www/localhost/htdocs/drupal/"> Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all DirectoryIndex index.php <FilesMatch "^.ht"> Order allow,deny Deny from all
</FilesMatch>
</Directory> </VirtualHost>
My problem is that drupal appears to ignore my settings file under site1.com. So I get the default site even if i access the site using 'www.site1.com'.
Am i missing something obvious here?
All help would greatly be appreciated.
Regards Joe
Quoting Haisam Ido haisam@ido.org:
You went to
www.site1.com
while you defined site1.com. I'm not sure if that would work.
Yes, it works.
Earnie -- http://for-my-kids.com
Haisam Ido wrote:
You went to
www.site1.com
while you defined site1.com. I'm not sure if that would work.
This isn't a drupal problem, it's an apache problem. The ServerAlias line should say
ServerAlias www.site1.com
There's no point in aliasing it to itself, but if you don't put in www.site1.com, it will never use this virtual host for www.site1.com. It'll use whatever the default virtual host is.
Johannes Skov Frandsen wrote:
Hey
After looking through tons of guides and howtoes I'm still nowhere near a working solutions.
I have added the following structure to my sites folder:
/sites/all/modules /sites/all/themes
/sites/default/ /sites/default/files/ /sites/default/settings.php
/sites/site1.com/files/ /sites/site1.com/modules/ /sites/site1.com/themes/ /sites/site1.com/tmp/ /sites/site1.com/settings.php
I have created at vhost file for apache2 with the following settings:
<VirtualHost *:80> ServerName site1.com DocumentRoot "/var/www/localhost/htdocs/drupal/" ServerAlias site1.com
<Directory "/var/www/localhost/htdocs/drupal/"> Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all DirectoryIndex index.php <FilesMatch "^.ht"> Order allow,deny Deny from all
</FilesMatch>
</Directory> </VirtualHost>
My problem is that drupal appears to ignore my settings file under site1.com. So I get the default site even if i access the site using 'www.site1.com'.
Am i missing something obvious here?
All help would greatly be appreciated.
Regards Joe
You should probably rename your /sites/site1.com to /sites/www.site1.com if you want to access it via www.site1.com. That should make it work for both http://site1.com and http://www.site1.com.
--Victor
On 4/26/07, Johannes Skov Frandsen joe@omesc.com wrote:
Hey
After looking through tons of guides and howtoes I'm still nowhere near a working solutions.
I have added the following structure to my sites folder:
/sites/all/modules /sites/all/themes
/sites/default/ /sites/default/files/ /sites/default/settings.php
/sites/site1.com/files/ /sites/site1.com/modules/ /sites/site1.com/themes/ /sites/site1.com/tmp/ /sites/site1.com/settings.php
I have created at vhost file for apache2 with the following settings:
<VirtualHost *:80> ServerName site1.com DocumentRoot "/var/www/localhost/htdocs/drupal/" ServerAlias site1.com
<Directory "/var/www/localhost/htdocs/drupal/"> Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all DirectoryIndex index.php <FilesMatch "^.ht"> Order allow,deny Deny from all
</FilesMatch>
</Directory> </VirtualHost>
My problem is that drupal appears to ignore my settings file under site1.com. So I get the default site even if i access the site using 'www.site1.com'.
Am i missing something obvious here?
All help would greatly be appreciated.
Regards Joe
-- [ Drupal support list | http://lists.drupal.org/ ]
Quoting Victor Trac victor.trac@gmail.com:
You should probably rename your /sites/site1.com to /sites/www.site1.com if you want to access it via www.site1.com. That should make it work for both http://site1.com and http://www.site1.com.
This a matter of choice; Drupal semantics should find sites/site1.com if the URL given is www.site1.com or site1.com. The www.site1.com is the 7th hit in the filter and site1.com is the 8th hit in the filter based on the comments of settings.php.
Earnie -- http://for-my-kids.com
On Thu, 2007-04-26 at 11:34 -0400, Earnie Boyd wrote:
Quoting Victor Trac victor.trac@gmail.com:
You should probably rename your /sites/site1.com to /sites/www.site1.com if you want to access it via www.site1.com. That should make it work for both http://site1.com and http://www.site1.com.
This a matter of choice; Drupal semantics should find sites/site1.com if the URL given is www.site1.com or site1.com. The www.site1.com is the 7th hit in the filter and site1.com is the 8th hit in the filter based on the comments of settings.php.
Earnie -- http://for-my-kids.com
Well now my multisite is working more or less... I thought i could just point the new site to a db created for the globalsite, but this apperantly will not work.
For some reason files a still saved in the 'files' folder in the root of my drupal installation and not in the 'files' folder in the domain folder under sites. Any ideaes why that is? I run the install script from the site folder an the sites apeears to instll nicely.... except for the fact that all files uploaded to the site is saved in the global files folder.
Secondly.... I can't seem to enable clean urls on my sites, but it works on my base installation. Some settings I need to change in vhost?
Joe
For some reason files a still saved in the 'files' folder in the root of my drupal installation and not in the 'files' folder in the domain folder under sites. Any ideaes why that is?
That setting is in admin >> settings >> file system - you can specify the folder there.
Secondly.... I can't seem to enable clean urls on my sites, but it works on my base installation. Some settings I need to change in vhost?
Joe
Maybe check your settings.php first for base url etc.
Nathaniel Catchpole wrote:
For some reason files a still saved in the 'files' folder in the root of my drupal installation and not in the 'files' folder in the domain folder under sites. Any ideaes why that is?
That setting is in admin >> settings >> file system - you can specify the folder there.
Works fine now... thank you
Quoting Johannes Skov Frandsen joe@omesc.com:
On Thu, 2007-04-26 at 11:34 -0400, Earnie Boyd wrote:
Quoting Victor Trac victor.trac@gmail.com:
You should probably rename your /sites/site1.com to /sites/www.site1.com if you want to access it via www.site1.com. That should make it work for both http://site1.com and http://www.site1.com.
This a matter of choice; Drupal semantics should find sites/site1.com if the URL given is www.site1.com or site1.com. The www.site1.com is the 7th hit in the filter and site1.com is the 8th hit in the filter based on the comments of settings.php.
Earnie -- http://for-my-kids.com
Well now my multisite is working more or less... I thought i could just point the new site to a db created for the globalsite, but this apperantly will not work.
For some reason files a still saved in the 'files' folder in the root of my drupal installation and not in the 'files' folder in the domain folder under sites. Any ideaes why that is? I run the install script from the site folder an the sites apeears to instll nicely.... except for the fact that all files uploaded to the site is saved in the global files folder.
AFAIK you must be specific in the settings for files upload directory. So if you want sites/site1.com/files to be the upload point then your need to say that in the administration configuration in the GUI.
Secondly.... I can't seem to enable clean urls on my sites, but it works on my base installation. Some settings I need to change in vhost?
You need mod_rewrite enabled in your httpd.
Earnie -- http://for-my-kids.com
Earnie Boyd wrote:
Secondly.... I can't seem to enable clean urls on my sites, but it works on my base installation. Some settings I need to change in vhost?
You need mod_rewrite enabled in your httpd.
Earnie -- http://for-my-kids.com
I have mod rewrite enable in httpd, and rewrite works fine on my default site.
Should i add something somewhere to enable it for the other sites aswell? aperently it dosn't work out of the box, or (more likely) I have missed something in the configuration.
Joe
Quoting Johannes Skov Frandsen joe@omesc.com:
Earnie Boyd wrote:
Secondly.... I can't seem to enable clean urls on my sites, but it works on my base installation. Some settings I need to change in vhost?
You need mod_rewrite enabled in your httpd.
Earnie -- http://for-my-kids.com
I have mod rewrite enable in httpd, and rewrite works fine on my default site.
Should i add something somewhere to enable it for the other sites aswell? aperently it dosn't work out of the box, or (more likely) I have missed something in the configuration.
You did execute the test in the administration setup correct? If yes, then perhaps a configuration issue with virtual host.
Earnie -- http://for-my-kids.com