subdomain 404

Hello
I want to show the subdomain sub.domain.com
What should I do

I did, but did not work
Displays domain.com/sub