Last active
October 12, 2015 07:48
-
-
Save gabrieljoelc/3994728 to your computer and use it in GitHub Desktop.
Configuration that exposes IIS Express website to other devices on the same network and allow DELETE verb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--put this in %USERPROFILE%\IISExpress\config--> | |
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<configSections> | |
<sectionGroup name="system.applicationHost"> | |
<section name="sites" allowDefinition="AppHostOnly" overrideModeDefault="Deny" /> | |
</sectionGroup> | |
<sectionGroup name="system.webServer"> | |
<section name="handlers" overrideModeDefault="Deny" /> | |
</sectionGroup> | |
</configSections> | |
<system.applicationHost> | |
<sites> | |
<site name="Web.Dashboard" id="1"> | |
<application path="/"> | |
<virtualDirectory path="/" physicalPath="C:\tfs\Dev\Source\WebFront\Web.Dashboard" /> | |
</application> | |
<bindings> | |
<binding protocol="http" bindingInformation="*:60502:localhost" /> | |
<binding protocol="http" bindingInformation="*:60502:[computername]" /> | |
</bindings> | |
</site> | |
<site name="Web.Security" id="2"> | |
<application path="/"> | |
<virtualDirectory path="/" physicalPath="C:\tfs\Dev\Source\WebFront\Web.Security" /> | |
</application> | |
<bindings> | |
<binding protocol="http" bindingInformation="*:58733:localhost" /> | |
<binding protocol="http" bindingInformation="*:58733:[computername]" /> | |
<binding protocol="https" bindingInformation="*:443:localhost" /> | |
<binding protocol="https" bindingInformation="*:443:[computername]" /> | |
</bindings> | |
</site> | |
</sites> | |
</system.applicationHost> | |
<location path="" overrideMode="Allow"> | |
<system.webServer> | |
<handlers accessPolicy="Read, Script"> | |
<clear name="ExtensionlessUrl-Integrated-4.0"/> | |
<add name="ExtensionlessUrl-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,DELETE" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" responseBufferLimit="0" /> | |
</handlers> | |
</system.webServer> | |
</location> | |
</configuration> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
netsh http add urlacl url=http://[computername]:60502/ user=ncarb.local\ScrumDawgs | |
netsh http add urlacl url=http://[computername]:443/ user=ncarb.local\ScrumDawgs | |
netsh http add urlacl url=https://[computername]:443/ user=ncarb.local\ScrumDawgs | |
netsh http add urlacl url=http://[computername]:60502/ user=everyone | |
netsh http add urlacl url=http://[computername]:443/ user=everyone | |
netsh http add urlacl url=https://[computername]:443/ user=everyone | |
netsh http delete urlacl url=http://[computername]:60502/ | |
netsh http delete urlacl url=http://[computername]:58733/ | |
netsh http delete urlacl url=https://[computername]:443/ | |
netsh advfirewall firewall add rule name="IISExpressWeb" dir=in protocol=tcp localport=60502 profile=private remoteip=localsubnet action=allow | |
netsh advfirewall firewall add rule name="IISExpressWeb" dir=in protocol=tcp localport=58733 profile=private remoteip=localsubnet action=allow | |
netsh advfirewall firewall add rule name="IISExpressWeb" dir=in protocol=tcp localport=443 profile=private remoteip=localsubnet action=allow | |
netsh advfirewall firewall add rule name="IISExpressWeb" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment