If your ENABLE_SSL_ADMIN is set to 'true' then it will build the URLs from HTTPS_SERVER + DIR_WS_HTTPS_ADMIN
If ENABLE_SSL_ADMIN is set to 'false' it will build its URLs from HTTP_SERVER + DIR_WS_ADMIN