IIS 8.5 is not serving JS, CSS, and Image files (static content)

前端 未结 5 1021
我寻月下人不归
我寻月下人不归 2021-01-07 23:13

The problem

We\'re running IIS on Windows 8.1 with Update. We\'re at the Orchard CMS first time setup screen, and IIS is giving 401s for all static content. We hav

相关标签:
5条回答
  • 2021-01-07 23:43

    I had a similar problem. Under authentication, I right clicked "Anonymous Authentication" and clicked "Edit". That shows a dialog giving you the ability to set the identity of the anonymous user. I set it to "Application pool identity" and that fixed the problem for me.

    IIS Anonymous Authentication Credentials Dialog.

    This may not be the most secure configuration though, but I'm on a dev server so I don't care.

    0 讨论(0)
  • 2021-01-07 23:47

    Updating windows feature for WWW services/Common Http Features/static content by selecting Static Content checkbox fixed my IIS not service static content issue.

    0 讨论(0)
  • 2021-01-07 23:55

    Try turn on the Static Content and Directory Browsing features under Internet Information Services->World Wide Web Services->Common HTTP Features node.

    0 讨论(0)
  • 2021-01-08 00:03

    So, what I had to do to fix this problem was the following: (and please understand, that this is not ASP or PHP script related, the server wouldn't even show basic simple .html files, yet would serve out PHP results all day long!)

    Two fold…

    1. Had to set the application pool for each site, under advanced settings, to use LocalSystem for it’s process
    2. Under site, advanced settings, security, add the IUSR account to have read & list contents access, for the site… :-)

    See any problems with doing that?

    'cuz it's working....

    0 讨论(0)
  • 2021-01-08 00:06

    In my case I had to set Read permission for IUSR user for the web site folder.

    0 讨论(0)
提交回复
热议问题