The way you described it is a good way to do it, and one of the most common uses for addon domains.