Using Context Path.

This is more appropriate for what needs to be done. The
GrailsLinkGenerator created URLs based on hostname of server
(obviously), but this means that the Try-It-Out function had odd
behavior and did not use the DNS name.

The Context Path solves that issue.