Hello,
I'm trying to setup my drupal installation to have multiple sites. So, in my sites directory, I copied the default directory as menashalibrary.org. I created a new database for that site, and modified the settings.php file in the menashalibrary.org directory to point to the database. But, when I go to the url for the site: http://www.wals.lib.wi.us/drupal/sites/menashalibrary.org I get a 403 forbidden error.
Looking at my server logs, I get this: [error] [client 172.30.2.145] Directory index forbidden by rule: /var/www/html/drupal/sites/menashalibrary.org/
I've looked at the forums and instructions online for this, and I'm very confused.
What am I doing wrong?
- jody
On 14 Sep 2006, at 12:58, Jody Cleveland wrote:
Hello,
I'm trying to setup my drupal installation to have multiple sites. So, in my sites directory, I copied the default directory as menashalibrary.org. I created a new database for that site, and modified the settings.php file in the menashalibrary.org directory to point to the database. But, when I go to the url for the site: http://www.wals.lib.wi.us/drupal/sites/menashalibrary.org I get a 403 forbidden error.
Looking at my server logs, I get this: [error] [client 172.30.2.145] Directory index forbidden by rule: /var/www/html/drupal/sites/menashalibrary.org/
Requesting http://www.wals.lib.wi.us/drupal/sites/menashalibrary.org is asking drupal to serve you the default file in the /drupal/sites/ menashalibrary.org directory on http://www.wals.lib.wi.us, not the site menashalibrary.org.
Apache is returning a forbidden error because the default index file is set in the .htaccess to be index.php but the only file in that directory is settings.php.
To have multiple sites working you need to set up the domain menashalibrary.org in Apache and set the DocumentRoot to your drupal install, in addition to setting up the database and settings.php.
Hope that makes sense *:)
G.
-- ------------------------------------------------------------------------ Home: http://polytechnic.co.uk Photos: http://flickr.com/photos/garrettc Music: http://last.fm/user/garrettc1
On 14 Sep 2006, at 12:58, Jody Cleveland wrote:
Hello,
I'm trying to setup my drupal installation to have multiple sites. So, in my sites directory, I copied the default directory as menashalibrary.org. I created a new database for that site, and modified the settings.php file in the menashalibrary.org directory to point to the database. But, when I go to the url for the site: http://www.wals.lib.wi.us/drupal/sites/menashalibrary.org I get a 403 forbidden error.
Looking at my server logs, I get this: [error] [client 172.30.2.145] Directory index forbidden by rule: /var/www/html/drupal/sites/menashalibrary.org/
Requesting http://www.wals.lib.wi.us/drupal/sites/menashalibrary.org is asking drupal to serve you the default file in the /drupal/sites/ menashalibrary.org directory on http://www.wals.lib.wi.us, not the site menashalibrary.org.
Apache is returning a forbidden error because the default index file is set in the .htaccess to be index.php but the only file in that directory is settings.php.
To have multiple sites working you need to set up the domain menashalibrary.org in Apache and set the DocumentRoot to your drupal install, in addition to setting up the database and settings.php.
Hope that makes sense *:)
G.
--
Home: http://polytechnic.co.uk Photos: http://flickr.com/photos/garrettc Music: http://last.fm/user/garrettc1
-- [ Drupal support list | http://lists.drupal.org/ ]
This may help: http://www.mybizguard.com/mediawiki/index.php/Drupal_cms_4.7#VIRTUALHOST
Requesting http://www.wals.lib.wi.us/drupal/sites/menashalibrary.org is asking drupal to serve you the default file in the /drupal/sites/ menashalibrary.org directory on http://www.wals.lib.wi.us, not the site menashalibrary.org.
Apache is returning a forbidden error because the default index file is set in the .htaccess to be index.php but the only file in that directory is settings.php.
To have multiple sites working you need to set up the domain menashalibrary.org in Apache and set the DocumentRoot to your drupal install, in addition to setting up the database and settings.php.
As I have it now, this is a test location that will one day be www.menashalibrary.org. But, I don't want to point the dns there yet because this is a major update to their site that isn't completed yet. So, until then it will exist as I have it. Can I set the domain in apache to be www.wals.lib.wi.us/drupal/sites/menashalibrary.org? Or, does it actually have to be the domain?
- jody
On 9/14/06, Jody Cleveland Cleveland@winnefox.org wrote:
As I have it now, this is a test location that will one day be www.menashalibrary.org. But, I don't want to point the dns there yet because this is a major update to their site that isn't completed yet. So, until then it will exist as I have it. Can I set the domain in apache to be www.wals.lib.wi.us/drupal/sites/menashalibrary.org? Or, does it actually have to be the domain?
The domain you suggested isn't a valid domain (containing forward slashes) so you'd have to do something else.
My suggestion (and practice) for test and development sites is to use a subdomain off of the final destination domain. So, you would create a virtual host for test.menashalibrary.org and point it's DocumentRoot at /path/to/your/drupal
Regards, Greg
The domain you suggested isn't a valid domain (containing forward slashes) so you'd have to do something else.
My suggestion (and practice) for test and development sites is to use a subdomain off of the final destination domain. So, you would create a virtual host for test.menashalibrary.org and point it's DocumentRoot at /path/to/your/drupal
Brilliant! Thanks!
- jody