zone file, conf file, named file and mysite.com/site1

Events happening in the community are now at Drupal community events on www.drupal.org.
Anonymous's picture

I run many sites off single core.

Here's what I've done to make multisite work pretty good:

  • Create mysql database with permissions
  • cd ../drupal/sites/
  • cp -R default/ newsite.com
  • chmod o+w /sites/newsite.com/
  • Add a zone file.
  • Add the new site to the conf file.
  • Add a ServerAlias in the vhost file.
  • Restart *named*
  • Direct my browser to newsite.com and run the install script ...

I can also add a new site to a subdomain(s) (site1.mysite.com and site2.site1.mysite.com) by adding "A" records to the mysite.com zone file.

But now I have a new need: I need new installs at mysite.com/site1, mysite.com/site1/site2 (and not site1.mysite.com, site2.site1.mysite.com)

Specifically:

  • What do I add to the drupal root directory or ../sites/ ?
  • What do I add to the zone file?
  • What - if anything - do I add to vhost file, etcetera?

Multisite

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: