I have a Drupal 6.x site installed and working. I have created a folder in this site's /sites folder for another site. I named the folder for the subsite by its subdomain.

So I have this for example:

/var/www/multisite/sites/subdomain.sites.org

In the "subdomain.sites.org" folder I have separate /files, /modules, and /themes folders and a separate "settings.php" file. The settings.php file is mapped to its own db.

I then added config to the httpd.conf to point the subdomain to this subsite directory.

Now when I browse to:

http://subdomain.sites.org/

I get an index directory list that shows the directory folders and files. So I have something wrong in the config.

Any suggestions?

Thanks in advance.

-backdrifting

Comments

lsrzj’s picture

Go to this issue and take a read, I think it may help you.
http://drupal.org/node/53705

Another thing you will have to setup VirtualHost in your apache's server httpd.conf and create DNS entries for the multisite or if you are on a development machine create an entry in your hosts file pointing your site's address to 127.0.0.1. And remember to use the .htaccess file shipped with drupal's installation

<VirtualHost *:80>
        ServerAdmin admin@domain.com
        DocumentRoot /path_to_drupal_root
        ServerName example.domain.com
        ErrorLog logs/example.domain.com-error_log
        CustomLog logs/example.domain.com_log common
        <Directory /path_to_drupal_root>
           Options -Indexes FollowSymLinks MultiViews ExecCGI
           AllowOverride All
           Order allow,deny
           Allow from all
           DirectoryIndex index.php
           RewriteEngine on
        </Directory>
</VirtualHost>
ambientdrup’s picture

I figured it out. We were pointing to the root of the sub-site and not the root of the main blanket site. We adjusted that and it's working now. Thanks for sending suggestions/fixes. I'll take a closer look at the material you sent.

Thanks,

-backdrifting