Skip to content
GitLab
About GitLab
GitLab: the DevOps platform
Explore GitLab
Install GitLab
How GitLab compares
Get started
GitLab docs
GitLab Learn
Pricing
Talk to an expert
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Projects
Groups
Snippets
Sign up now
Login
Sign in
Toggle navigation
Menu
Open sidebar
project
provision
Commits
5162ca44
Commit
5162ca44
authored
Feb 09, 2015
by
Zach Seifts
Committed by
Herman van Rink
Feb 09, 2015
Browse files
Issue
#2421543
by notzach: Changing how Apache ServerAliases are defined
parent
bded8935
Changes
4
Hide whitespace changes
Inline
Side-by-side
http/Provision/Config/Apache/Ssl/vhost_ssl.tpl.php
View file @
5162ca44
...
...
@@ -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
"
;
}
}
?>
...
...
http/Provision/Config/Apache/Ssl/vhost_ssl_disabled.tpl.php
View file @
5162ca44
...
...
@@ -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
...
...
http/Provision/Config/Apache/vhost.tpl.php
View file @
5162ca44
...
...
@@ -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
"
;
}
}
?>
...
...
http/Provision/Config/Apache/vhost_disabled.tpl.php
View file @
5162ca44
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment