After I visit http://domain.name/DIRECTORy,it is going to a different DOCUMENT_ROOT.

I am using Apache,how you can configure it correct in home windows and linux correspondingly?