From 8d36ff92261e62de4366852497ffb3f3d748f8b4 Mon Sep 17 00:00:00 2001 From: Kafeel Hasan Date: Mon, 1 Sep 2025 14:32:21 +0530 Subject: [PATCH 1/3] =?UTF-8?q?Update=20NAP=20Docs=20This=20commit=20updat?= =?UTF-8?q?es=20the=20NAP=20user=20facing=20documentation=20with=20the=20f?= =?UTF-8?q?ollowing=20change:=20Based=20on=20this=20issue=20:=20https://gi?= =?UTF-8?q?thub.com/nginxinc/nalb-shared/issues/1695,=20updated=20the=20Co?= =?UTF-8?q?nfigure=20App=20Protect=20WAF=20with=20the=20following=20text?= =?UTF-8?q?=20-=20The=20File=20path=20is=20not=20optional=20and=20is=20aut?= =?UTF-8?q?omatically=20generated=20in=20the=20portal,=20defaulting=20to?= =?UTF-8?q?=20the=20path=20=E2=80=9C/etc/app=5Fprotect/conf/=E2=80=9D=20pl?= =?UTF-8?q?us=20the=20policy=20Name=20with=20a=20=E2=80=9C.json=E2=80=9D?= =?UTF-8?q?=20extension?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/nginxaas-azure/app-protect/configure-waf.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/nginxaas-azure/app-protect/configure-waf.md b/content/nginxaas-azure/app-protect/configure-waf.md index 8a461317c..77690f99c 100644 --- a/content/nginxaas-azure/app-protect/configure-waf.md +++ b/content/nginxaas-azure/app-protect/configure-waf.md @@ -114,7 +114,7 @@ To create a custom security policy in the Azure Portal: 3. Select **Custom Policies** 4. Select **Add Custom Security Policy** to open the policy editor -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/). +In the policy editor, enter the **Name**, **File path**, your policy content, and then select **Save**. 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. 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/). {{< call-out "note" >}}The **name** field within the security policy must be unique among the policies referenced in your NGINX configuration.{{< /call-out >}} @@ -129,3 +129,4 @@ It is highly recommended to use logging to monitor the performance of NGINX App ## What's next [Enable App Protect WAF Logs]({{< ref "/nginxaas-azure/app-protect/enable-logging.md" >}}) + \ No newline at end of file From 03f121d19f79532ca9fb7404f527b8c6d151b4b7 Mon Sep 17 00:00:00 2001 From: Kafeel Hasan Date: Mon, 1 Sep 2025 14:35:38 +0530 Subject: [PATCH 2/3] Removed Extra Space --- content/nginxaas-azure/app-protect/configure-waf.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/content/nginxaas-azure/app-protect/configure-waf.md b/content/nginxaas-azure/app-protect/configure-waf.md index 77690f99c..bf40ad67e 100644 --- a/content/nginxaas-azure/app-protect/configure-waf.md +++ b/content/nginxaas-azure/app-protect/configure-waf.md @@ -128,5 +128,4 @@ It is highly recommended to use logging to monitor the performance of NGINX App ## What's next -[Enable App Protect WAF Logs]({{< ref "/nginxaas-azure/app-protect/enable-logging.md" >}}) - \ No newline at end of file +[Enable App Protect WAF Logs]({{< ref "/nginxaas-azure/app-protect/enable-logging.md" >}}) \ No newline at end of file From 49312183f0c45cd02d5b86fe24bbe28ec9dc085e Mon Sep 17 00:00:00 2001 From: Kafeel Hasan Date: Tue, 2 Sep 2025 22:22:54 +0530 Subject: [PATCH 3/3] Addressed PR comments --- content/nginxaas-azure/app-protect/configure-waf.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/content/nginxaas-azure/app-protect/configure-waf.md b/content/nginxaas-azure/app-protect/configure-waf.md index bf40ad67e..3a436654f 100644 --- a/content/nginxaas-azure/app-protect/configure-waf.md +++ b/content/nginxaas-azure/app-protect/configure-waf.md @@ -114,7 +114,14 @@ To create a custom security policy in the Azure Portal: 3. Select **Custom Policies** 4. Select **Add Custom Security Policy** to open the policy editor -In the policy editor, enter the **Name**, **File path**, your policy content, and then select **Save**. 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. 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/). +In the policy editor: + +- Enter the **Name** (as a filename), **File path**, your policy content, and then select **Save**. + + - Be sure to append the filename with ".json". + - The **File path** is automatically generated with "/etc/app_protect/conf/" as the default policies folder. + +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/). {{< call-out "note" >}}The **name** field within the security policy must be unique among the policies referenced in your NGINX configuration.{{< /call-out >}}