Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a text file that I am trying to browse to using the browser http://files.mydomain.com/test.txt and I get a:

HTTP Error 404.0 - Not found

I double checked and the text file does exist. When I add a test.htm file, I have no issues.

Can someone help?

share|improve this question
add comment

2 Answers

up vote 0 down vote accepted

Couple quick ideas:

Ensure "txt" is a known/allowed MIME type (text/plain) in IIS - if it's not that will give you a 404.

Ensure the IUSRS account has read access to the file (although that should give you a 401 if not set).

share|improve this answer
add comment

You can try to add a http handler for"*.txt" extension on IIS 7.

share|improve this answer
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.