Skip to content

Commit 41350a3

Browse files
kafeelhasanmjang
andauthored
Update NAP Doc - Configure App Protect WAF - Custom Policies (#1041)
* Update NAP Docs This commit updates the NAP user facing documentation with the following change: Based on this issue : nginxinc/nalb-shared#1695, updated the Configure App Protect WAF with the following text - The File path is not optional and is automatically generated in the portal, defaulting to the path “/etc/app_protect/conf/” plus the policy Name with a “.json” extension * Removed Extra Space * Addressed PR comments --------- Co-authored-by: Mike Jang <[email protected]>
1 parent 433d397 commit 41350a3

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

content/nginxaas-azure/app-protect/configure-waf.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,14 @@ To create a custom security policy in the Azure Portal:
114114
3. Select **Custom Policies**
115115
4. Select **Add Custom Security Policy** to open the policy editor
116116

117-
In the policy editor, enter the **Name**, **File path**, your policy content, and then select **Save**. The **File path** is optional and will default to the path "/etc/app_protect/conf/" plus the policy **Name** with a ".json" extension. After your policy has been saved, you can then reference it in your NGINX configuration. For more information on policy configuration and syntax, refer to the NGINX App Protect [configuration guide](https://docs.nginx.com/nginx-app-protect-waf/v5/configuration-guide/configuration/).
117+
In the policy editor:
118+
119+
- Enter the **Name** (as a filename), **File path**, your policy content, and then select **Save**.
120+
121+
- Be sure to append the filename with ".json".
122+
- The **File path** is automatically generated with "/etc/app_protect/conf/" as the default policies folder.
123+
124+
After your policy has been saved, you can then reference it in your NGINX configuration. For more information on policy configuration and syntax, refer to the NGINX App Protect [configuration guide](https://docs.nginx.com/nginx-app-protect-waf/v5/configuration-guide/configuration/).
118125

119126
{{< call-out "note" >}}The **name** field within the security policy must be unique among the policies referenced in your NGINX configuration.{{< /call-out >}}
120127

@@ -128,4 +135,4 @@ It is highly recommended to use logging to monitor the performance of NGINX App
128135

129136
## What's next
130137

131-
[Enable App Protect WAF Logs]({{< ref "/nginxaas-azure/app-protect/enable-logging.md" >}})
138+
[Enable App Protect WAF Logs]({{< ref "/nginxaas-azure/app-protect/enable-logging.md" >}})

0 commit comments

Comments
 (0)