Tag iis

iis7 insert rewrite rule web.config

To insert a rewrite rule in to a web.config for deployment purposes you need to modify Web.Release.Config Example <system.webServer> <rewrite xdt:Transform=”Insert”> <outboundRules> <rule name=”Add Cross Origin Access”> <match serverVariable=”RESPONSE_Access_Control_Allow_Origin” pattern=”.*” /> <conditions> <add input=”{REQUEST_URI}” pattern=”.*\.(ttf|otf|eot|woff|svg)\?*.*$” /> </conditions> <action type=”Rewrite” value=”*”/>…

IIS 6.0 Add Host Headers in Bulk

IIS 6.0 Add Host Headers in Bulk To add host headers in bulk (IIS 6.0) you will need these two scripts in C:\Inetpub\AdminScripts: AppendHostHeaders.vbs chglist.vbs Additionally you will need an input csv called “c:\sites.csv” that follows this format (id, sitename…

Run IIS6 in 32 bit mode

To run IIS6 in 32bit mode you need to run these commands: cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1 “C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe” -i