Parent Directory
|
Revision Log
|
Revision Graph
#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 |