# Apparmor profile needed

**URL:** <https://community.nginx.org/t/apparmor-profile-needed/11448>\
**Category:** NGINX\
**Tags:** web-server\
**Created:** [October 28, 2026, 4:08pm UTC](https://community.nginx.org/t/apparmor-profile-needed/11448 "2026-10-28T16:08:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![krustf](https://avatars.discourse-cdn.com/v4/letter/k/d9b06d/32.png) [@krustf](https://community.nginx.org/u/krustf)\
**Post date:** [October 28, 2026, 4:08pm UTC](https://community.nginx.org/t/apparmor-profile-needed/11448/1 "2026-10-28T16:08:59Z")

</div>

_Please use this template for troubleshooting questions._

**My issue:**

### What would you like to discuss?

Websites explaining `nginx apparmor` tells different profile. What is the correct profile so that I can use?

Here’s my current profile for public-facing webserver `listen 0.0.0.0:443`:

```auto
abi <abi/4.0>,

include <tunables/global>

/usr/sbin/nginx flags=(complain) {
  include <abstractions/base>
  include <abstractions/nameservice>

  capability dac_override,
  capability net_bind_service,
  capability setgid,
  capability setuid,

  /etc/nginx/** r,
  /run/nginx.pid rwk,
  /usr/sbin/nginx mr,
  /usr/share/nginx/** r,
  /var/log/nginx/** rw,

  /var/lib/nginx/ssl_certs/** r,
  /var/lib/nginx/cache/ rw,
  /var/lib/nginx/cache/** rw,

  /var/www/** r,

  /etc/group r,
  /etc/nsswitch.conf r,
  /etc/passwd r,

}

```

**How I encountered the problem:**

**Solutions I’ve tried:**

**Version of NGINX or NGINX adjacent software (e.g. NGINX Gateway Fabric):**

**Deployment environment:**

**Minimal NGINX config to reproduce your issue (preferably running on [NGINX Playground | tech-playground.com](https://tech-playground.com/playgrounds/nginx) for ease of debugging, and if not as a code block):** _(Tip → Run `nginx -T` to print your entire NGINX config to your terminal.)_

**NGINX access/error log:** _(Tip → You can usually find the logs in the `/var/log/nginx` directory.)_
