Posted By

odenijs on 12/03/11


Tagged

IIS inetsrvstaticfilehandlermimetypemime


Versions (?)

Add mimetype to IIS 7


 / Published in: DOS Batch
 

command script for adding mimetypes for IIS

  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  

You need to login to post a comment.