.httaccess => web.config

#1

Trying to put the Cockpit under IIS
But I need a web.config file
I tried to convert with the help of the tool URL Rewrite
And got the following:

<?xml version="1.0" encoding="UTF-8"?>

Cockpit starts, but when you work gives an error
Error: “/modules/Collections/assets/field-collectionlink.tag?nc=1556089632” not found

#2

Microsoft === VERY NOT Adequate Expression

<?xml version="1.0" encoding="UTF-8"?>
<mimeMap fileExtension=".f4a" mimeType="audio/mp4" />
<mimeMap fileExtension=".f4b" mimeType="audio/mp4" />
<mimeMap fileExtension=".f4v" mimeType="video/mp4" />
<mimeMap fileExtension=".f4p" mimeType="video/mp4" />

<mimeMap fileExtension=".webp" mimeType="image/webp" />
<mimeMap fileExtension=".appcache" mimeType="atext/cache-manifest" />
<mimeMap fileExtension=".rss" mimeType="application/xml" />
<mimeMap fileExtension=".rdf" mimeType="application/xml" />
<rule name="Imported Rule 2" stopProcessing="true">
  <match url=".*" ignoreCase="false" />
  <conditions>
    <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
    <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
  </conditions>
  <action type="Rewrite" url="index.php" />
</rule>

it`s work

…may be

#3

Hi,

I’m zero experienced in IIS but maybe this config may help: https://github.com/agentejo/cockpit/issues/726#issuecomment-380102335

#4

Alas … Microsoft doesn’t understand the secrets of Microsoft even in their own support office :frowning:

But with the given configuration, it seems to work.