Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IIS7 returns 404 on some static files, not others

I have a css file and a js file in a directory. The css file returns 200 OK while the js file returns 404 Not Found.

They have the same permissions. IUSR, IIS_IUSRS, Internet Guest Account all have (at least) Read.

like image 620
Matthew Avatar asked Feb 11 '13 18:02

Matthew


1 Answers

Add the file type to IIS MIME TYPES. It wont serve unknown file types.

like image 183
Aaron Gibson Avatar answered Sep 28 '22 07:09

Aaron Gibson