Skip to content

Authentik in a subfolder: Embedded outpost and /media folder do not work #14463

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Ra72xx opened this issue May 10, 2025 · 0 comments
Open
Labels
bug Something isn't working

Comments

@Ra72xx
Copy link

Ra72xx commented May 10, 2025

Describe the bug
I switched from using Authentik in the root folder to using authentik in a subfolder by setting
AUTHENTIK__WEB_PATH=/authentik/
This basically works, but it seems as if (at least) the folders

/media/
/outpost.goauthentik.io/

are now no longer reachable. None of the following paths works:

http://localhost:9000/media
http://localhost:9000/authentik/media
http://localhost:9000/outpost.goauthentik.io/ping
http://localhost:9000/authentik/outpost.goauthentik.io/ping
https://external.domain:port/media
https://external.domain:port/authentik/media
https://external.domain:port/outpost.goauthentik.io/ping
https://external.domain:port/authentik/outpost.goauthentik.io/ping

The external domain is proxied by Nginx, but as the un-proxied localhost connection also does not work for these paths, it does not seem to be a proxy problem.

This makes stuff like application icons, avatars and especially the embedded outpost unavailable, as requests produce an 404 error.

Other functionality, as far as I use it (web ui, LDAP outpost, oidc endpoints) seems to work.

To Reproduce
Enable Authentik in a subfolder as per documentation. The installation was in the root folder in the same domain (but with another port) before.

Expected behavior
After changing all path entries in the configuration, Authentik should work in a subfolder the same way as in the root folder.

Logs
Logs contain no hints concerning this error

Version and Deployment (please complete the following information):

  • authentik version: 2025.2.4
  • Deployment: Custom podman units for all Authentik components build like the Docker examples in the documentation.
@Ra72xx Ra72xx added the bug Something isn't working label May 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant