NGINX Modern Apps > Class 5 - NGINX App Protect WAF & DoS > 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.
- Open Firefox and click on the NIM bookmark.
- Log in using the lab / AppWorld2024! credentials. Click on the Instance Manager tile.
- Click on nginx-plus-2.appworld.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/AppWorldPolicy.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. If the Publish initially fails, please click Publish and confirm publishing again.
- Click on App Protect Policies from the menu.
- On the list of policies, click on the name AppWorldPolicy.
- On this screen, you can see that the policy is applied.