using SSL in main web site only

Dears

How can I use SSL (Https) only in the main site
I mean I force to use https://domain.com
but http fpr sub site http://sub.domain.com