Setting a Domain to the Environment or some Profile
You must use the
Noosfero Console to follow this steps.
Any Profile
(person, community, enterprise) or Environment can have its won domain, or a collection of domains. The entity domains are registered inside its domains list attribute. See this examples:
>> # Setting the Default Environment domain:
>> d = Domain.new( :name => "softwarelivre.org", :is_default => true )
>> Environment.default.domains << d
>> Environment.default.save
>>
>> # Setting the Richard Stalman's profiles domain:
>> p = Person['rms']
>> p.domains << Domain.new( :name => "stallman.org", :is_default => true )
>> p.save
Well, you may know that personal domain feature is only useful if your server response for the user domain, otherwise you are sending the visitors away on any link for this user.