Book Image

Drupal 7 Multi Sites Configuration

Book Image

Drupal 7 Multi Sites Configuration

Overview of this book

Drupal is one of the most powerful PHP Content Management Systems there is. However, why would you install a CMS for every site you build? With just one copy of Drupal you can host several sites. Drupal has long had multi-site support, and Drupal 7's support is even better than previous versions. Drupal 7 Multi-Sites Configuration will teach you how to host several websites on a single copy of Drupal. You will learn how to create different sites, each with its own domain, content, and theme. This valuable information will help you to save time by managing modules and sharing them across several sites as well as administering your sites all in one place.This book will show you how to configure a system for multi-site, and then install several sites on one copy of Drupal, all with their own domain name and database. Learn how to install and share modules and themes, configure Apache, PHP, and MySQL for multi-site, and then manage the site. Once your site system is successfully set up, discover some of the advanced configurations possible with Drupal multi-site, as well as how to upgrade and maintain your sites.
Table of Contents (11 chapters)

Favicons and robots


There are certain files that various web agents expect to find at predefined URLs on your server. Drupal provides some of these files at fixed locations within the Drupal distribution. That is, these files are actual files stored on the filesystem, not paths whose content Drupal generates. This can cause issues when working with multi-site Drupal instances, since often each site needs its own copy of these files. In this section we will look at modules that solve this problem for two specific types of file, namely, favicons and robots files.

Favicons ("Favorite Icons"), the little images that show up on browser tabs and in bookmarks, are one example. Some web agents assume these files will be accessible at your site's root with the name favicon.ico, for example http://example.com/favicon.ico.

Note

Drupal allows you to specify a favicon in a theme's settings, but it relies on the user agent to find out where the favicon is located (by reading part of an HTML document)...