provision_apache_vhost.tpl.php 637 Bytes
Newer Older
1
<VirtualHost *:80>
2
3
4
5
<?php if ($site_mail) : ?>
  ServerAdmin <?php  print $site_mail; ?> 
<?php endif;?>
  DocumentRoot <?php print $publish_path; ?> 
6
    
7
  ServerName <?php print $site_url; ?>
8

9
<?php if (is_array($aliases)) :
10
11
12
13
  foreach ($aliases as $alias_url) :
  if (trim($alias_url)) : ?>
  ServerAlias <?php print $alias_url; ?> 

14
<?php
15
 endif;
16
17
 endforeach;
 endif; ?>
18

19
20
<?php print $extra_config; ?>

21
    # Error handler for Drupal > 4.6.7
22
    <Directory "<?php print $publish_path; ?>/sites/<?php print trim($site_url, '/'); ?>/files">
23
24
25
      SetHandler This_is_a_Drupal_security_line_do_not_remove
    </Directory>

26
</VirtualHost>