[Solved] Traefik in front of AWX

Hello,

Just found this issue on AWX Github : Web UI not working when running AWX behind reverse proxy on a subdomain · Issue #3879 · ansible/awx · GitHub. It seems that AWX doesn't support accessing the WebUI with a PathPrefix like /awx.

As a workaround, I changed the rule from PathPrefix to Host and Path like this :

Host(awx.mydomain.com) || Host(awx.mydomain.com) && Path(/api)

The second part of this rule is used to ensure that requests sent to AWX API don't get routed to Traefik API. That's because I have this rule defined for accessing Traefik dashboard :

(PathPrefix(/api) || PathPrefix(/dashboard)

I added a record in my DNS for the hostname awx.mydomain.com, now I can connect to AWX via Traefik with https://awx.mydomain.com/.

Hope this can help someone else :slight_smile:

1 Like