F5 Agility Template > Class5 - NGINX App Protect WAF > Module 2 - Protect the Arcadia Finance App with NGINX App Protect WAF Source | Edit on
Enable NGINX App Protect on the Arcadia Finance App¶
Now you will now enable NGINX App Protect and apply a WAF policy to the Arcadia Finance app.
Attention
The release we’ve used in the lab, 2.8.0, has a known issue. This issue is fixed in releases 2.9.0 and higher. Due to time restrictions, we were unable to upgrade this lab prior to the event.
For details on the known-issue, refer to Precompiled Publication setting is reverted to false after error publishing NGINX App Protect policy on the NGINX Management Suite Known Issues page.
- First, you’ll need to address the known-issue in the lab’s release of NGINX Management Suite. From the Applications menu, click SSH Shortcuts and log into nginx-plus-2. Issue the following command:
sudo sed -i 's/precompiled_publication: true/precompiled_publication: false/g' /etc/nginx-agent/nginx-agent.conf; sudo systemctl restart nginx-agent; sleep 7; sudo sed -i 's/precompiled_publication: false/precompiled_publication: true/g' /etc/nginx-agent/nginx-agent.conf; sudo systemctl restart nginx-agent
- Open Firefox and click on the NMS bookmark.

- Log in using the lab / Agility2023! credentials. Click on the Instance Manager tile.

- Click on nginx-plus-2.agility.lab instance in the list.

- Click on the Edit Config button.

- Select the arcadia-financial.conf file in the navigation pane on the left.

- Add the following configuration lines to the server block that includes the listen 443 ssl directive:
app_protect_enable on;
app_protect_policy_file "/etc/nms/AgilityPolicy.tgz";
app_protect_security_log_enable on;
app_protect_security_log "/etc/nms/secops_dashboard.tgz" syslog:server=127.0.0.1:514;
Your screen should look similar to below:

- Click the Publish icon in the toolbar in the file editor.

- You will be presented with a confirmation prompt. Click Publish to continue.

- After a few moments, you will see a notification that the configuration was successfully published.

- Click on App Protect from the menu.

- On the list of policies, click on the name AgilityPolicy.

- On this screen, you can see that the policy is applied.
