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
5baec74e
Commit
5baec74e
authored
Sep 07, 2014
by
Grazyna Jaworska
Browse files
Backport provision_hosting_feature_enabled (2)
parent
73ea4467
Changes
4
Hide whitespace changes
Inline
Side-by-side
http/Provision/Config/Apache/vhost.tpl.php
View file @
5baec74e
...
...
@@ -22,7 +22,7 @@
<?php
if
(
sizeof
(
$this
->
aliases
))
{
print
"
\n
ServerAlias "
.
implode
(
"
\n
ServerAlias "
,
$this
->
aliases
)
.
"
\n
"
;
print
"
\n
ServerAlias "
.
implode
(
"
\n
ServerAlias "
,
$this
->
aliases
)
.
"
\n
"
;
}
?>
...
...
@@ -86,8 +86,7 @@ if ($this->redirection || $ssl_redirection) {
<?php
$if_subsite
=
$this
->
data
[
'http_subdird_path'
]
.
'/'
.
$this
->
uri
;
$if_subdirs
=
drush_get_option
(
'hosting_features'
,
array
());
if
(
array_key_exists
(
'subdirs'
,
$if_subdirs
)
&&
$if_subdirs
[
'subdirs'
]
&&
provision_file
()
->
exists
(
$if_subsite
)
->
status
())
{
if
(
provision_hosting_feature_enabled
(
'subdirs'
)
&&
provision_file
()
->
exists
(
$if_subsite
)
->
status
())
{
print
" Include "
.
$if_subsite
.
"/*.conf
\n
"
;
}
?>
...
...
http/Provision/Config/Nginx/vhost.tpl.php
View file @
5baec74e
...
...
@@ -68,8 +68,7 @@ else {
print
" include "
.
$server
->
include_path
.
"/nginx_vhost_common.conf;
\n
"
;
}
$if_subsite
=
$this
->
data
[
'http_subdird_path'
]
.
'/'
.
$this
->
uri
;
$if_subdirs
=
drush_get_option
(
'hosting_features'
,
array
());
if
(
array_key_exists
(
'subdirs'
,
$if_subdirs
)
&&
$if_subdirs
[
'subdirs'
]
&&
provision_file
()
->
exists
(
$if_subsite
)
->
status
())
{
if
(
provision_hosting_feature_enabled
(
'subdirs'
)
&&
provision_file
()
->
exists
(
$if_subsite
)
->
status
())
{
print
" include "
.
$if_subsite
.
"/*.conf;
\n
"
;
}
?>
...
...
http/Provision/Service/http/apache.php
View file @
5baec74e
...
...
@@ -17,8 +17,7 @@ class Provision_Service_http_apache extends Provision_Service_http_public {
$this
->
configs
[
'server'
][]
=
'Provision_Config_Apache_Server'
;
$this
->
configs
[
'platform'
][]
=
'Provision_Config_Apache_Platform'
;
$this
->
configs
[
'site'
][]
=
'Provision_Config_Apache_Site'
;
$if_subdirs
=
drush_get_option
(
'hosting_features'
,
array
());
if
(
array_key_exists
(
'subdirs'
,
$if_subdirs
)
&&
$if_subdirs
[
'subdirs'
])
{
if
(
provision_hosting_feature_enabled
(
'subdirs'
))
{
$this
->
configs
[
'site'
][]
=
'Provision_Config_Apache_Subdir'
;
$this
->
configs
[
'site'
][]
=
'Provision_Config_Apache_SubdirVhost'
;
}
...
...
http/Provision/Service/http/nginx.php
View file @
5baec74e
...
...
@@ -23,8 +23,7 @@ class Provision_Service_http_nginx extends Provision_Service_http_public {
$this
->
server
->
setProperty
(
'provision_db_cloaking'
,
TRUE
);
$this
->
server
->
setProperty
(
'phpfpm_mode'
,
'port'
);
$this
->
server
->
setProperty
(
'subdirs_support'
,
FALSE
);
$if_subdirs
=
drush_get_option
(
'hosting_features'
,
array
());
if
(
array_key_exists
(
'subdirs'
,
$if_subdirs
)
&&
$if_subdirs
[
'subdirs'
])
{
if
(
provision_hosting_feature_enabled
(
'subdirs'
))
{
$this
->
server
->
subdirs_support
=
TRUE
;
$this
->
configs
[
'site'
][]
=
'Provision_Config_Nginx_Subdir'
;
$this
->
configs
[
'site'
][]
=
'Provision_Config_Nginx_SubdirVhost'
;
...
...
@@ -77,8 +76,7 @@ class Provision_Service_http_nginx extends Provision_Service_http_public {
}
// Set correct subdirs_support value on server save
$if_subdirs
=
drush_get_option
(
'hosting_features'
,
array
());
if
(
array_key_exists
(
'subdirs'
,
$if_subdirs
)
&&
$if_subdirs
[
'subdirs'
])
{
if
(
provision_hosting_feature_enabled
(
'subdirs'
))
{
$this
->
server
->
subdirs_support
=
TRUE
;
}
}
...
...
@@ -128,8 +126,7 @@ class Provision_Service_http_nginx extends Provision_Service_http_public {
}
// Set correct subdirs_support value on server verify
$if_subdirs
=
drush_get_option
(
'hosting_features'
,
array
());
if
(
array_key_exists
(
'subdirs'
,
$if_subdirs
)
&&
$if_subdirs
[
'subdirs'
])
{
if
(
provision_hosting_feature_enabled
(
'subdirs'
))
{
$this
->
server
->
subdirs_support
=
TRUE
;
}
...
...
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