Support of URL Rewrite 2.0 for IIS on Nano Server
Will URL Rewrite 2.0 be supported for IIS on Nano Server? This will help to enable Web administrators to create powerful rules to implement URLs that are easier for users to remember and easier for search engines to find.
John Nguyen commented
Going off of what T Teague said, I found success in copying over rewrite.dll from system32/inetsrv, installing/adding the module with appcmd install /name:RewriteModule /image etc., and editing the applicationhost.config in system32/inetsrv/config by adding
<section name="rules" overrideModeDefault="Allow" />
<section name="globalRules" overrideModeDefault="Deny" allowDefinition="AppHostOnly" />
<section name="outboundRules" overrideModeDefault="Allow" />
<section name="providers" overrideModeDefault="Allow" />
<section name="rewriteMaps" overrideModeDefault="Allow" />
<section name="allowedServerVariables" overrideModeDefault="Deny" />
to <sectionGroup name="system.webServer">
There's probably a proper way of doing this, but I found this to at least load up the site.
Eugene Agafonov commented
@T would like to see the script as well. I see that I can just copy those files, but the registration doesn't seem to be straightforward, what should I register and how? is url rewrite isapi module?
What is status of this? Or what files I need to copy to nano to get this work? Any tutorial?
@T Any chance to share the script or the list of files to copy?
T Teague commented
I may get hate for this, but we have it working. A little birdie says you might be able to copy over the relevant url re-write mui, dll, and xml config file, then register the module via powershell, and it seems to work.