You set the document root in either the apache config file (if you have access to it) or as part of your hoster's config panel.
I have to add that some hosters (like mine) do not allow you to change the document root and then it will not work.
I am not an expert on this topic so maybe hansfn can help you.