Skip to content

Instantly share code, notes, and snippets.

@kamiyn
Created December 4, 2014 11:14
Show Gist options
  • Save kamiyn/262af456fa3cc989027d to your computer and use it in GitHub Desktop.
Save kamiyn/262af456fa3cc989027d to your computer and use it in GitHub Desktop.
デプロイ時にWeb.configに値を設定する Parameters.xml の話 ref: http://qiita.com/kamiyn/items/2311b9cfb7e7a20d5796
<?xml version="1.0" encoding="utf-8"?>
<parameters>
<parameter name="/configuration/system.webServer/security/ipSecurity/allowUnlisted" description="IPアドレス制限">
<parameterEntry kind="XmlFile"
defaultValue="false"
scope="\\Web.config$"
match="/configuration/system.webServer/security/ipSecurity/@allowUnlisted" />
</parameter>
</parameters>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
......
<system.webServer>
<security>
<ipSecurity allowUnlisted="false">
<add ipAddress="127.0.0.1" allowed="true" />
</ipSecurity>
</security>
</system.webServer>
......
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment