/[drupal]/contributions/modules/provision/web_server/provision_apache_vhost.tpl.php
ViewVC logotype

Contents of /contributions/modules/provision/web_server/provision_apache_vhost.tpl.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.12 - (show annotations) (download) (as text)
Thu Oct 29 17:21:05 2009 UTC (4 weeks ago) by adrian
Branch: MAIN
CVS Tags: DRUPAL-6--0-4-ALPHA3, HEAD
Changes since 1.11: +12 -1 lines
File MIME type: text/x-php
Use apaches mod_env to set the database credentials in the virtualhost file, so that they are only accessible inside a specific process. the $_SERVER values are now bootstrapped in the verify site process and the config file rewritten, so that you can now safely verify a site. the $_SERVER values are stored inside the site drushrc.php so that normal drush commands will continue to operate as they would. The open_basedir directive is commented out until we can resolve issues with it.
1 <VirtualHost *:<?php print $site_port; ?>>
2 <?php if ($site_mail) : ?>
3 ServerAdmin <?php print $site_mail; ?>
4 <?php endif;?>
5 DocumentRoot <?php print $publish_path; ?>
6
7 ServerName <?php print $site_url; ?>
8
9 SetEnv db_type <?php print urlencode($db_type); ?>
10
11 SetEnv db_name <?php print urlencode($db_name); ?>
12
13 SetEnv db_user <?php print urlencode($db_user); ?>
14
15 SetEnv db_passwd <?php print urlencode($db_passwd); ?>
16
17 SetEnv db_host <?php print urlencode($db_host); ?>
18
19 <?php if (!$redirection && is_array($aliases)) :
20 foreach ($aliases as $alias_url) :
21 if (trim($alias_url)) : ?>
22 ServerAlias <?php print $alias_url; ?>
23
24 <?php
25 endif;
26 endforeach;
27 endif; ?>
28
29 <?php print $extra_config; ?>
30
31 # Error handler for Drupal > 4.6.7
32 <Directory "<?php print $publish_path; ?>/sites/<?php print trim($site_url, '/'); ?>/files">
33 SetHandler This_is_a_Drupal_security_line_do_not_remove
34 </Directory>
35
36 # @todo make this configurable and more intelligent
37 # php_admin_value open_basedir /tmp:<?php print rtrim($publish_path, '/') ?>/:<?php print rtrim($config_path, '/') ?>/includes/:/usr/share/php/
38
39 </VirtualHost>

  ViewVC Help
Powered by ViewVC 1.1.2