8
I have just installed IIS on Windows Server 2008. If I go to localhost
, the default page is displayed, so the web server is ok.
I have added a folder with a page in it in the \inetpub\wwwroot
directory. The full path to the page is then C:\inetpub\wwwroot\folder\file.html
.
I have restarted the services but if I navigate to localhost/folder/file.html
I get a 404 file not found error
.
Obviously I have forgotten something simple, but what is it? :)
I am having the same issue, can't get it working. I created a Windows account IUSER_IIS, gave him full permissions on the app directory, set app identity to that user, and created an app pool with that identity, set app to use the app pool. It can read a simple .HTML file, but I get HTTP 404 on Default.aspx. Any ideas? Further details you need? – Jay Imerman – 2019-02-25T17:00:11.347
If your using Visual Studio's publishing, make sure you've actually published it or it'll give a 404. – facepalm42 – 2019-12-17T06:14:59.400
Check error log, you will find what exactly it is searching – J Bourne – 2014-04-14T11:56:48.927
@Sai It is searching that exact file:
GET /folder/file.html - 80
– user1301428 – 2014-04-14T12:08:29.050I think this is from access log, there will be error log, whenever it fails...! – J Bourne – 2014-04-14T12:10:58.780
@Sai Uhm, weird.. That's the only log file I have.. – user1301428 – 2014-04-14T12:25:16.200
Check this, http://forums.iis.net/t/1189242.aspx?IIS+7+HTTP+Error+Log+Location
– J Bourne – 2014-04-14T12:28:18.347what are the permissions on C:\inetpub\wwwroot\folder\ ? – Frank Thomas – 2014-04-14T12:30:14.910
@FrankThomas For the purposes of this test, Allow to all and for all users. – user1301428 – 2014-04-14T12:34:02.900
most of the time, anonymous accounts are not part of the "everyone" group, so make sure you have IUser or Anonymous permitted to read the files. – Frank Thomas – 2014-04-14T13:53:47.803
I would recommend playing with user permissions if I remember correctly I had an issue with IUser or IIS_user that not being set properly and received the same message. – Brian – 2014-04-14T13:22:45.077
@FrankThomas Anonymous logon is also in the users who are allowed to read the files in the folder :( – user1301428 – 2014-04-14T14:31:12.943