- haproxy support subdomain name with '.'
This commit is contained in:
parent
dfede98b82
commit
d8165cbf44
1 changed files with 12 additions and 4 deletions
|
@ -693,8 +693,16 @@ class ApiController extends Zend_Controller_Action
|
|||
if (Application_Model_Preference::GetPlanLevel() != 'disabled'){
|
||||
if ($component == "pypo"){
|
||||
$split = explode('.', $_SERVER['SERVER_NAME']);
|
||||
if (count($split) > 0){
|
||||
$subDomain = $split[0];
|
||||
$subdomain = array();
|
||||
foreach ($split as $value) {
|
||||
if ($value == 'airtime') {
|
||||
break;
|
||||
} else {
|
||||
$subdomain[] = $value;
|
||||
}
|
||||
}
|
||||
if (count($subdomain) > 0){
|
||||
$subDomain = implode('.',$subdomain);
|
||||
|
||||
$md = array();
|
||||
$md["sub_domain"] = $subDomain;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue