provision_apache_vhost.tpl.php 612 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<VirtualHost *:80>
    <?php if ($site_mail) : ?>
      ServerAdmin <?php  print $site_mail; ?> 
    <?php endif;?>
    DocumentRoot <?php print $publish_path; ?> 
    
    ServerName <?php print $site_url; ?>

    <?php if (is_array($site_aliases)) :
     foreach ($site_aliases as $alias_url) : ?>
       ServerAlias <?php print $alias_url; ?>
     <?php
       endforeach;
     endif; ?>

    # Error handler for Drupal > 4.6.7
17
    <Directory "<?php print $publish_path; ?>/sites/<?php print $site_url; ?>/files">
18
19
20
      SetHandler This_is_a_Drupal_security_line_do_not_remove
    </Directory>

21
</VirtualHost>