I have a fresh VPS installation from my provider (Windows 2008 R2, IIS 7.5).
The default web site works fine:
I created a new website, and binding for http://new.ianquigley.com
On that server and everywhere else that Domain maps to the IP address. (ping new.ianquigley.com for example).
I created the sub folder
c:\inetpub\wwwroot\com.ianquigley and created an HTML file
index.html with the content "
The default document for the web site is
On the server, in Chrome I browse to http://new.ianquigley.com/index.html and get a 404 Error.
The page says;
HTTP Error 404.0 - Not Found The resource you are looking for has been removed, had it's name changed, or is temporarily unavailable. Detail: Module: IIS Web Core Notification: HttpRequestHandler Handler: StaticFile Error Code: 0x80007002 Request URL: http://new.ianquigley.com/index.html Physical path: c:\inetpub\wwwroot\com.ianquigley\index.html Logon Method: Anonymous Logon User: Anonymous Failed Request Log: c:\inetpub\logs\FailedRequestLog
The Physical Path does exist. The folder
com.ianquigley both have "Everyone" and "Read" permission.
c:\inetpub\wwwroot\logfiles\w3svc2\u_ex130201 file contains the request for the index.html with the 404 error code.
update (from comment below)
c:\cake with "Everyone" "Full Control" permissions. Moved my index.html file in there and changed the mapping in IIS. Checking the page in the browser on the server again gives me the same as above except Physical Path is
update 2 The default web site (which works fine/can read from disk) runs in the "DefaultAppPool", which originally used the account "ApplicationPoolIdentity". The new website also uses this same app pool. I've tried changing the account to; NetworkService, LocalService and LocalSytem (refreshing the app pool each time).. still no joy!
#Software: Microsoft Internet Information Services 7.5 #Version: 1.0 #Date: 2013-02-02 20:00:02 #Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status time-taken 2013-02-02 20:00:02 126.96.36.199 GET /index.html - 80 - 188.8.131.52 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.17+(KHTML,+like+Gecko)+Chrome/24.0.1312.57+Safari/537.17 404 0 2 1151
sc-win32-status: 2 means "file not found". So this is probably simply a file access permission sort of problem. If it is, why can the default web site read from
c:\inetpub\wwwroot folder sucesfully but not a sub-folder with permission.
Right now I'm completely stumped.