subdir_disabled.tpl.php 483 Bytes
Newer Older
1 2 3 4 5 6 7
<?php
$satellite_mode = drush_get_option('satellite_mode');
if (!$satellite_mode && $server->satellite_mode) {
  $satellite_mode = $server->satellite_mode;
}
?>

8
location ^~ /<?php print $subdir; ?>/ {
9 10 11
<?php if ($satellite_mode == 'boa'): ?>
  root   /var/www/nginx-default;
  index  index.html index.htm;
12
  ### Do not reveal Aegir front-end URL here.
13
<?php else: ?>
14
  rewrite ^ <?php print $this->platform->server->web_disable_url . '/' . $this->uri ?>? redirect;
15
<?php endif; ?>
16
}