Commit 196f3e8b authored by notzach's avatar notzach Committed by helmo

Issue #2421543 by notzach: Changing how Apache ServerAliases are defined

parent e95d75d2
......@@ -36,7 +36,9 @@
<?php
if (sizeof($this->aliases)) {
print "\n ServerAlias " . implode("\n ServerAlias ", $this->aliases) . "\n";
foreach ($this->aliases as $alias) {
print " ServerAlias " . $alias . "\n";
}
}
?>
......
......@@ -17,10 +17,12 @@
SSLCertificateKeyFile <?php print $ssl_cert_key; ?>
<?php
if (sizeof($this->aliases)) {
print "\n ServerAlias " . implode("\n ServerAlias ", $this->aliases) . "\n";
<?php
if (sizeof($this->aliases)) {
foreach ($this->aliases as $alias) {
print " ServerAlias " . $alias . "\n";
}
}
?>
RewriteEngine on
......
......@@ -22,7 +22,9 @@
<?php
if (sizeof($this->aliases)) {
print "\n ServerAlias " . implode("\n ServerAlias ", $this->aliases) . "\n";
foreach ($this->aliases as $alias) {
print " ServerAlias " . $alias . "\n";
}
}
?>
......
......@@ -6,12 +6,13 @@
ServerName <?php print $this->uri; ?>
<?php if (is_array($this->aliases)) :
foreach ($this->aliases as $alias) : ?>
ServerAlias <?php print $alias; ?>
<?php
endforeach;
endif; ?>
<?php
if (sizeof($this->aliases)) {
foreach ($this->aliases as $alias) {
print " ServerAlias " . $alias . "\n";
}
}
?>
RewriteEngine on
# the ? at the end is to remove any query string in the original url
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment