Subdomain for self-service portal on-site

Is it possible to set a separate subdomain for self-service portal for instance: if crm is: crm.mydomain.com then set portal as: portal.mydomain.com (on-site SugarCRM Ent)