| 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>
|