danielebarchiesi@0
|
1 <?php
|
danielebarchiesi@0
|
2
|
danielebarchiesi@0
|
3 /**
|
danielebarchiesi@0
|
4 * @file
|
danielebarchiesi@0
|
5 * Configuration file for Drupal's multi-site directory aliasing feature.
|
danielebarchiesi@0
|
6 *
|
danielebarchiesi@0
|
7 * This file allows you to define a set of aliases that map hostnames, ports, and
|
danielebarchiesi@0
|
8 * pathnames to configuration directories in the sites directory. These aliases
|
danielebarchiesi@0
|
9 * are loaded prior to scanning for directories, and they are exempt from the
|
danielebarchiesi@0
|
10 * normal discovery rules. See default.settings.php to view how Drupal discovers
|
danielebarchiesi@0
|
11 * the configuration directory when no alias is found.
|
danielebarchiesi@0
|
12 *
|
danielebarchiesi@0
|
13 * Aliases are useful on development servers, where the domain name may not be
|
danielebarchiesi@0
|
14 * the same as the domain of the live server. Since Drupal stores file paths in
|
danielebarchiesi@0
|
15 * the database (files, system table, etc.) this will ensure the paths are
|
danielebarchiesi@0
|
16 * correct when the site is deployed to a live server.
|
danielebarchiesi@0
|
17 *
|
danielebarchiesi@0
|
18 * To use this file, copy and rename it such that its path plus filename is
|
danielebarchiesi@0
|
19 * 'sites/sites.php'. If you don't need to use multi-site directory aliasing,
|
danielebarchiesi@0
|
20 * then you can safely ignore this file, and Drupal will ignore it too.
|
danielebarchiesi@0
|
21 *
|
danielebarchiesi@0
|
22 * Aliases are defined in an associative array named $sites. The array is
|
danielebarchiesi@0
|
23 * written in the format: '<port>.<domain>.<path>' => 'directory'. As an
|
danielebarchiesi@0
|
24 * example, to map http://www.drupal.org:8080/mysite/test to the configuration
|
danielebarchiesi@0
|
25 * directory sites/example.com, the array should be defined as:
|
danielebarchiesi@0
|
26 * @code
|
danielebarchiesi@0
|
27 * $sites = array(
|
danielebarchiesi@0
|
28 * '8080.www.drupal.org.mysite.test' => 'example.com',
|
danielebarchiesi@0
|
29 * );
|
danielebarchiesi@0
|
30 * @endcode
|
danielebarchiesi@0
|
31 * The URL, http://www.drupal.org:8080/mysite/test/, could be a symbolic link or
|
danielebarchiesi@0
|
32 * an Apache Alias directive that points to the Drupal root containing
|
danielebarchiesi@0
|
33 * index.php. An alias could also be created for a subdomain. See the
|
danielebarchiesi@0
|
34 * @link http://drupal.org/documentation/install online Drupal installation guide @endlink
|
danielebarchiesi@0
|
35 * for more information on setting up domains, subdomains, and subdirectories.
|
danielebarchiesi@0
|
36 *
|
danielebarchiesi@0
|
37 * The following examples look for a site configuration in sites/example.com:
|
danielebarchiesi@0
|
38 * @code
|
danielebarchiesi@0
|
39 * URL: http://dev.drupal.org
|
danielebarchiesi@0
|
40 * $sites['dev.drupal.org'] = 'example.com';
|
danielebarchiesi@0
|
41 *
|
danielebarchiesi@0
|
42 * URL: http://localhost/example
|
danielebarchiesi@0
|
43 * $sites['localhost.example'] = 'example.com';
|
danielebarchiesi@0
|
44 *
|
danielebarchiesi@0
|
45 * URL: http://localhost:8080/example
|
danielebarchiesi@0
|
46 * $sites['8080.localhost.example'] = 'example.com';
|
danielebarchiesi@0
|
47 *
|
danielebarchiesi@0
|
48 * URL: http://www.drupal.org:8080/mysite/test/
|
danielebarchiesi@0
|
49 * $sites['8080.www.drupal.org.mysite.test'] = 'example.com';
|
danielebarchiesi@0
|
50 * @endcode
|
danielebarchiesi@0
|
51 *
|
danielebarchiesi@0
|
52 * @see default.settings.php
|
danielebarchiesi@0
|
53 * @see conf_path()
|
danielebarchiesi@0
|
54 * @see http://drupal.org/documentation/install/multi-site
|
danielebarchiesi@0
|
55 */
|