Created
December 4, 2014 11:14
-
-
Save kamiyn/262af456fa3cc989027d to your computer and use it in GitHub Desktop.
デプロイ時にWeb.configに値を設定する Parameters.xml の話 ref: http://qiita.com/kamiyn/items/2311b9cfb7e7a20d5796
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
<?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> |
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
<?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