Solved

Default Documents sending 404 error even when configured in IIS

Posted on 2004-04-21
9
533 Views
Last Modified: 2008-03-06
I have recently built a web server running IIS 5.0 on Windows 2000, but am having trouble getting the default documents (index.htm, default.asp, index.cfm, etc.) to be returned to the client's browser unless they're explicitly declared in the URL (http://www.foo.com/bar returns a 404 error while http://www.foo.com/bar/index.cfm works).  Each of these documents is listed in the "Documents" tab in the web site's properties settings under the heading "Enable Default Document" , and this option has been selected.  What other setting(s) should I check or modify to correct this problem?  
0
Comment
Question by:shooksm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 5

Expert Comment

by:chaniewskim
ID: 10880809
It is possible to have specified default document for a website, but cleared for its subdirectory. In your case: you have default document 'index.cfm' listed in website properties, but not in /bar directory properties. Check it.

Also, check casing of filenames in website properties and on your file. This shouldn't be a case, because IIS ignores case, but better check than sorry.
0
 
LVL 9

Author Comment

by:shooksm
ID: 10881448
Good suggestion.  Checked out the offending sub folders and they are set with the same default documents.  Any other ideas?
0
 
LVL 5

Expert Comment

by:chaniewskim
ID: 10881618
No idea. Is that 404 or 403?
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 9

Author Comment

by:shooksm
ID: 10881693
404, which is strange as directory browsing is disabled so you would think you would get a 403 error if it could not find a default doc.
0
 
LVL 5

Expert Comment

by:chaniewskim
ID: 10881710
Is that problem only with index.cfm or with index.htm is the same?
0
 
LVL 9

Author Comment

by:shooksm
ID: 10881862
Wow, just tried index.htm, index.asp, index.cfm, default.htm, default.asp and default.cfm and none of them worked even though they are all set as default documents.  Is there any way to determine what file IIS is saying doesn't exist?
0
 
LVL 5

Accepted Solution

by:
chaniewskim earned 500 total points
ID: 10881889
Try to look into logs

C:\WINDOWS\system32\LogFiles\W3SVC1\exyymmdd.log
0
 
LVL 5

Expert Comment

by:chaniewskim
ID: 10881943
OK, check also:

- if your wwwroot or bar directory does not have 'hidden' attribute set
- extended status code, if it is shown:
404.0 - (None) – File or directory not found.
404.1 - Web site not accessible on the requested port.
404.2 - Web service extension lockdown policy prevents this request.
404.3 - MIME map policy prevents this request.

If nothing of this give you any additional hints, then check if default document works for root URL (http://www.foo.com/)

And, tell mi what is your /bar folder. Where is it placed - in wwwroot? Is it virtual directory?
There are sometimes problems when you have a physical folder in wwwroot and also virtual directory of the same name created in IIS. Check if it is the case here.
0
 
LVL 9

Author Comment

by:shooksm
ID: 10887977
Sure enough.  Checked the log file and found a URLScan program we have that filters out known exploits was causing it to redirect requests from "http://www.foo.com/bar" to "http://www.foo.com/bar/." thus causing the 404 error.  Disabling the URLScan app allows us to use the default documents again, now we just need to play around with the URLScan rules and figure out.
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Debug Tools to analyse IIS process: This article focus on taking memory dumps from IIS to determine which code is taking more time and to analyse which calls hangs/causes more CPU usage. To take dumps,download the following. Install1: To st…
Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question