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

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.

1 Answer 1

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.