Skip to content
Snippets Groups Projects
Select Git revision
  • d8fa5716ea0c03f43d59c521a70dba0c8a24ab5c
  • 11.x default protected
  • 11.2.x protected
  • 10.5.x protected
  • 10.6.x protected
  • 11.1.x protected
  • 10.4.x protected
  • 11.0.x protected
  • 10.3.x protected
  • 7.x protected
  • 10.2.x protected
  • 10.1.x protected
  • 9.5.x protected
  • 10.0.x protected
  • 9.4.x protected
  • 9.3.x protected
  • 9.2.x protected
  • 9.1.x protected
  • 8.9.x protected
  • 9.0.x protected
  • 8.8.x protected
  • 10.5.1 protected
  • 11.2.2 protected
  • 11.2.1 protected
  • 11.2.0 protected
  • 10.5.0 protected
  • 11.2.0-rc2 protected
  • 10.5.0-rc1 protected
  • 11.2.0-rc1 protected
  • 10.4.8 protected
  • 11.1.8 protected
  • 10.5.0-beta1 protected
  • 11.2.0-beta1 protected
  • 11.2.0-alpha1 protected
  • 10.4.7 protected
  • 11.1.7 protected
  • 10.4.6 protected
  • 11.1.6 protected
  • 10.3.14 protected
  • 10.4.5 protected
  • 11.0.13 protected
41 results

example.sites.php

Blame
  • Angie Byron's avatar
    #647300 follow-up by sun: Remove awkward array syntax from example.sites.php.
    Angie Byron authored
    b2ee71c1
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    example.sites.php 1.75 KiB
    <?php
    // $Id$
    
    /**
     * @file
     * Configuration file for Drupal's multi-site directory aliasing feature.
     *
     * Drupal searches for an appropriate configuration directory based on the
     * website's hostname and pathname. A detailed description of the rules for
     * discovering the configuration directory can be found in the comment
     * documentation in 'sites/default/default.settings.php'.
     *
     * This file allows you to define a set of aliases that map hostnames and
     * pathnames to configuration directories. These aliases are loaded prior to
     * scanning for directories, and they are exempt from the normal discovery
     * rules. The aliases are defined in an associative array named $sites, which
     * should look similar to the following:
     *
     * $sites = array(
     *   'devexample.com' => 'example.com',
     *   'localhost/example' => 'example.com',
     * );
     *
     * The above array will cause Drupal to look for a directory named
     * "example.com" in the sites directory whenever a request comes from
     * "example.com", "devexample.com", or "localhost/example". That is useful
     * on development servers, where the domain name may not be the same as the
     * domain of the live server. Since Drupal stores file paths into the database
     * (files, system table, etc.) this will ensure the paths are correct while
     * accessed on development servers.
     *
     * To use this file, copy and rename it such that its path plus filename is
     * 'sites/sites.php'. If you don't need to use multi-site directory aliasing,
     * then you can safely ignore this file, and Drupal will ignore it too.
     */
    
    /**
     * Multi-site directory aliasing:
     *
     * Edit the lines below to define directory aliases. Remove the leading hash
     * signs to enable.
     */
    # $sites['devexample.com'] = 'example.com';
    # $sites['localhost/example'] = 'example.com';