Add mimetype to IIS 7


/ Published in: DOS Batch
Save to your folder(s)

command script for adding mimetypes for IIS


Copy this code and paste it in your HTML
  1. C:\Windows\System32\inetsrv>
  2. appcmd set config /section:staticContent /+[fileExtension='md',mimeType='text/plain']
  3.  
  4. --> result: Applied configuration changes to section "system.webServer/staticContent" for "M
  5. ACHINE/WEBROOT/APPHOST" at configuration commit path "MACHINE/WEBROOT/APPHOST"

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.