Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

when i am publishing my .net website on my domain it is showing the directory of files when i open my site ..

anyone please tell me how to avoid this and make my website open mu home page .

share|improve this question

migrated from Jan 31 '10 at 10:44

This question came from our site for professional and enthusiast programmers.

You have to setup the default document to be Default.aspx or whatever is your start page. If you are using IIS, take a look at this or something similar ;)

share|improve this answer
You may want to turn off 'Directory Browsing' as well so that no one can see your file system. – E.Z. Hart Jan 29 '10 at 19:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.