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

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

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


Revision 1.2 - (show annotations) (download) (as text)
Thu Oct 15 10:37:38 2009 UTC (5 weeks, 5 days ago) by mig5
Branch: MAIN
CVS Tags: DRUPAL-6--0-4-ALPHA3, HEAD
Changes since 1.1: +4 -4 lines
File MIME type: text/x-php
#605194 - only explode the aliases string if it exists, so a blank ServerAlias isn't generated in the vhost on Disabling of a site. Move the ServerAlias line if it's going to exist, above the RewriteRule, to be consistent with the standard vhost template
1 <VirtualHost *:80>
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 <?php if (is_array($aliases)) :
10 foreach ($aliases as $alias) : ?>
11 ServerAlias <?php print $alias; ?>
12 <?php
13 endforeach;
14 endif; ?>
15
16 RewriteEngine on
17 # the ? at the end is to remove any query string in the original url
18 RewriteRule ^(.*)$ <?php print $redirect_url . '/' . $site_url ?>?
19
20 </VirtualHost>

  ViewVC Help
Powered by ViewVC 1.1.2