Why not use "www.mydomain.com" as an alias name for "mydomain.com" (or the other way round)?
I assume you want both domains to be served by the same virtual server.
Use the "hosts" attribute of <virtual-server> in domain.xml to specify (as a comma-separated list) all the domain names that you want to see mapped to this virtual server.
[Message sent by forum member 'jluehe' (jluehe)]
http://forums.java.net/jive/thread.jspa?messageID=256455