J'ai a fresh VPS installation depuis mon provider (Windows 2008 R2, IIS 7.5).
The par défaut web site works fine: http://5.9.251.167/
I created a nouveau website, et binding for http://new.ianquigley.com
On that server et everywhere else that Domain maps to le IP address. (ping new.ianquigley.com par exemple).
I created le sub folder c:\inetpub\wwwroot\com.ianquigley et created an HTML file index.html avec le content "<html>cake</html>"
The par défaut document for le web site is index.html
On le server, in Chrome I browse to http://new.ianquigley.com/index.html et 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 wwwroot et com.ianquigley les deux have "Everyone" et "Read" permission.
The c:\inetpub\wwwroot\logfiles\w3svc2\u_ex130201 file contains le request for le index.html avec le 404 error code.
update (from comment below)
I created c:\cake avec "Everyone" "Full Control" permissions. Moved mon index.html file in there et changed le mapping in IIS. Checking le page in le browser on le server again gives me le même as ci-dessus except Physical Path is c:\cake\index.html
update 2
The par défaut web site (which works fine/can read depuis disk) runs in le "DefaultAppPool", qui originally used le account "ApplicationPoolIdentity". The nouveau website aussi uses this même app pool. J'ai tried changing le account to; NetworkService, LocalService et LocalSytem (refreshing le app pool chaque time).. encore no joy!
W3SVC2 log
#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 5.9.251.167 GET /index.html - 80 - 5.9.251.167 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
The sc-win32-status: 2 means "file pas found". So this is probably simply a file access permission sort of problem. If it is, why can le par défaut web site read depuis c:\inetpub\wwwroot folder sucesfully mais pas a sub-folder avec permission.
Right now Je suis completely stumped.