# Root prefix for AWX

**URL:** <https://forum.ansible.com/t/root-prefix-for-awx/29973>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [March 25, 2019, 11:29am UTC](https://forum.ansible.com/t/root-prefix-for-awx/29973 "2019-03-25T11:29:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmed](https://avatars.discourse-cdn.com/v4/letter/a/8c91f0/32.png) [@ahmed](https://forum.ansible.com/u/ahmed)\
**Post date:** [March 25, 2019, 11:29am UTC](https://forum.ansible.com/t/root-prefix-for-awx/29973/1 "2019-03-25T11:29:10Z")

</div>

Hi,

I’m wondering if it is possible to configure a root prefix for all requests received by AWX.

Example :

Instead of https://@IP/#/home, AWX serves https://@IP/app/#/home

Thank you.

---

<div class="post-metadata">

**Author:** ![rpetrell](https://avatars.discourse-cdn.com/v4/letter/r/b4bc9f/32.png) [@rpetrell](https://forum.ansible.com/u/rpetrell)\
**Post date:** [March 25, 2019, 12:25pm UTC](https://forum.ansible.com/t/root-prefix-for-awx/29973/2 "2019-03-25T12:25:59Z")

</div>

ahmed,

It might be possible, though it will take some experimenting. I’d start with this line in the nginx configuration:

[https://github.com/ansible/awx/blob/devel/installer/roles/image\_build/templates/nginx.conf.j2#L93](https://github.com/ansible/awx/blob/devel/installer/roles/image_build/templates/nginx.conf.j2#L93)

---

<div class="post-metadata">

**Author:** ![ahmed](https://avatars.discourse-cdn.com/v4/letter/a/8c91f0/32.png) [@ahmed](https://forum.ansible.com/u/ahmed)\
**Post date:** [March 25, 2019, 1:49pm UTC](https://forum.ansible.com/t/root-prefix-for-awx/29973/3 "2019-03-25T13:49:23Z")

</div>

Thank you for your suggestion.

I have modified the line with **rewrite ^(._)$http\_host/app(._[^/])$ $1$http\_host$2/ permanent;**

I get **“WARNING django.request Not Found: /app/api”** in awx web logs\*\*.\*\* Should I also change the mapping between the URL path expressions and the views in django ?
