Forwarding from https:// to https://www

Is there some reason why this redirention can’t be done using Nginx?