In this section, the XML documents for the HTTP policies described in Typical HTTP Policies for Web and Outlook Web Access Publishing Rules are provided. You can import these policies into ISA Server using the following procedure.
-
Copy the XML document to Notepad, and save it as an .xml file with a descriptive name, such as HTTP Policy for Web Publishing.xml.
-
On the ISA Server CD, browse to the folder \sdk\samples\admin. Locate the script HttpFilterConfig.vbs.
-
From a command prompt, run the script HttpFilterConfig.vbs using the following syntax:
Note: |
|---|
|
The line has been split into multiple lines for readability. However, while trying it out on a system you must enter it as one line without breaks.
|
-
\ScriptDirectory\HTTPFilterConfig.vbs import RuleName
-
\somedirectory\HTTPPollicyXmlFileName
ScriptDirectory is the location where the script is, either the \sdk\samples\admin folder on the CD, or a location on the local hard drive, if you choose to copy the script there. RuleName is the name of the Web publishing or Outlook Web Access publishing rule to which you want to import the HTTP policy configuration, and somedirectory is the location where the HTTP policy .xml file is stored. HTTPPolicyXmlFileName is the name of the .xml file, such as HTTP Policy for Web Publishing.xml. For example, you might type the following at a command prompt:
Note: |
|---|
|
The line has been split into multiple lines for readability. However, while trying it out on a system you must enter it as one line without breaks.
|
F:\sdk\samples\admin\HTTPFilterConfig.vbs import My Web Publishing Rule
c:\ISAServerXml\HTTPPolicyXmlFileName
The script automatically applies the changes.
Note: |
|---|
|
The Maximum Headers Length parameter, which is applied globally to all rules, is not imported or exported by the HttpFilterConfig.vbs script. You should configure that setting through ISA Server Management.You can use the HttpFilterConfig.vbs script to export an existing HTTP policy configuration. The syntax is as shown in the import example, but using the word export rather than import.
|
XML Document for Baseline Web Publishing HTTP Policy
Following is the XML document for HTTP policy described in Baseline Web Publishing HTTP Policy.
Note: |
|---|
|
The line has been split into multiple lines for readability. However, while trying it out on a system you must enter it as one line without breaks.
|
<Configuration BlockExecutables="false" ViaHeaderAction="0"
NewViaHeaderValue="" ServerHeaderAction="0"
NewServerHeaderValue=""
MaxRequestBodyLen="-1"><UrlValidation NormalizeBeforeScan="true"
VerifyNormalization="true" AllowHighBitCharacters="true"
BlockDotInPath="false" MaxLength="260" MaxQueryLength="4096">
<Extensions AllowCondition="2">
<Extension Value=".exe" Description=""/>
<Extension Value=".bat" Description=""/>
<Extension Value=".cmd" Description=""/>
<Extension Value=".com" Description=""/>
<Extension Value=".htw" Description=""/>
<Extension Value=".ida" Description=""/>
<Extension Value=".idq" Description=""/>
<Extension Value=".htr" Description=""/>
<Extension Value=".idc" Description=""/>
<Extension Value=".shtm" Description=""/>
<Extension Value=".shtml" Description=""/>
<Extension Value=".stm" Description=""/>
<Extension Value=".printer" Description=""/>
<Extension Value=".ini" Description=""/>
<Extension Value=".log" Description=""/>
<Extension Value=".pol" Description=""/>
<Extension Value=".dat" Description=""/>
</Extensions>
</UrlValidation>
<Verbs AllowCondition="1">
<Verb Value="GET" Description=""/>
<Verb Value="HEAD" Description=""/>
<Verb Value="POST" Description=""/>
</Verbs>
<RequestHeaders/>
<ResponseHeaders/>
<DeniedSignatures>
<Signature Name=".." Description="" SearchInType="0" SearchInHeader=""
From="1" To="100" Pattern="[..]" FormatIsText="true" Enabled="true"/>
<Signature Name="./" Description="" SearchInType="0" SearchInHeader=""
From="1" To="100" Pattern="[./]" FormatIsText="true" Enabled="true"/>
<Signature Name="\" Description="" SearchInType="0" SearchInHeader=""
From="1" To="100" Pattern="[\]" FormatIsText="true" Enabled="true"/>
<Signature Name=":" Description="" SearchInType="0" SearchInHeader=""
From="1" To="100" Pattern="[:]" FormatIsText="true" Enabled="true"/>
<Signature Name="%" Description="" SearchInType="0" SearchInHeader=""
From="1" To="100" Pattern="[%]" FormatIsText="true" Enabled="true"/>
<Signature Name="&" Description="" SearchInType="0" SearchInHeader=""
From="1" To="100" Pattern="[&]" FormatIsText="true" Enabled="true"/>
</DeniedSignatures>
</Configuration>
XML Document for Baseline Outlook Web Access HTTP Policy
Following is the XML document for the Outlook Web Access HTTP policy described in Baseline Mail Server Publishing HTTP policy.
Note: |
|---|
|
Use this code without line breaks.
|
<Configuration BlockExecutables="true" ViaHeaderAction="0"
NewViaHeaderValue="" ServerHeaderAction="0"
NewServerHeaderValue="" MaxRequestBodyLen="10485760">
<UrlValidation NormalizeBeforeScan="true" VerifyNormalization="true"
AllowHighBitCharacters="true" BlockDotInPath="false"
MaxLength="16384" MaxQueryLength="4096">
<Extensions AllowCondition="2">
<Extension Value=".asax" Description=""/>
<Extension Value=".ascs" Description=""/>
<Extension Value=".bat" Description=""/>
<Extension Value=".cmd" Description=""/>
<Extension Value=".com" Description=""/>
<Extension Value=".config" Description=""/>
<Extension Value=".cs" Description=""/>
<Extension Value=".csproj" Description=""/>
<Extension Value=".dat" Description=""/>
<Extension Value=".dll" Description=""/>
<Extension Value=".exe" Description=""/>
<Extension Value=".htr" Description=""/>
<Extension Value=".htw" Description=""/>
<Extension Value=".ida" Description=""/>
<Extension Value=".idc" Description=""/>
<Extension Value=".idq" Description=""/>
<Extension Value=".ini" Description=""/>
<Extension Value=".licx" Description=""/>
<Extension Value=".log" Description=""/>
<Extension Value=".pdb" Description=""/>
<Extension Value=".pol" Description=""/>
<Extension Value=".printer" Description=""/>
<Extension Value=".resources" Description=""/>
<Extension Value=".resx" Description=""/>
<Extension Value=".shtm" Description=""/>
<Extension Value=".stm" Description=""/>
<Extension Value=".vb" Description=""/>
<Extension Value=".vbproj" Description=""/>
<Extension Value=".vsdisco" Description=""/>
<Extension Value=".webinfo" Description=""/>
<Extension Value=".xsd" Description=""/>
<Extension Value=".xsx" Description=""/>
</Extensions></UrlValidation><Verbs AllowCondition="1">
<Verb Value="BCOPY" Description=""/><Verb Value="BDELETE" Description=""/>
<Verb Value="BMOVE" Description=""/><Verb Value="BPROPPATCH" Description=""/>
<Verb Value="DELETE" Description=""/>
<Verb Value="GET" Description=""/><Verb Value="MKCOL" Description=""/>
<Verb Value="MOVE" Description=""/>
<Verb Value="POLL" Description=""/><Verb Value="POST" Description=""/>
<Verb Value="PROPFIND" Description=""/>
<Verb Value="PROPPATCH" Description=""/><Verb Value="SEARCH" Description=""/>
<Verb Value="SUBSCRIBE" Description=""/>
</Verbs><RequestHeaders/><ResponseHeaders/><DeniedSignatures>
<Signature Name="./" Description="" SearchInType="0" SearchInHeader="HTTP_"
From="1" To="100" Pattern="[./]" FormatIsText="true" Enabled="true"/>
<Signature Name="\" Description="" SearchInType="0" SearchInHeader="HTTP_"
From="1" To="100" Pattern="[\]" FormatIsText="true" Enabled="true"/>
<Signature Name=".." Description="" SearchInType="0" SearchInHeader="HTTP_"
From="1" To="100" Pattern="[..]" FormatIsText="true" Enabled="true"/>
<Signature Name="%" Description="" SearchInType="0" SearchInHeader="HTTP_"
From="1" To="100" Pattern="[%]" FormatIsText="true" Enabled="true"/>
<Signature Name="&" Description="" SearchInType="0" SearchInHeader="HTTP_"
From="1" To="100" Pattern="[&]" FormatIsText="true" Enabled="true"/>
</DeniedSignatures></Configuration>