# Ansible tower behind nginx

**URL:** <https://forum.ansible.com/t/ansible-tower-behind-nginx/24878>\
**Category:** Ansible Project\
**Tags:** awx\
**Created:** [July 3, 2017, 6:52am UTC](https://forum.ansible.com/t/ansible-tower-behind-nginx/24878 "2017-07-03T06:52:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luvpreet\_Singh](https://avatars.discourse-cdn.com/v4/letter/l/a5b964/32.png) [@Luvpreet\_Singh](https://forum.ansible.com/u/Luvpreet_Singh)\
**Post date:** [July 3, 2017, 6:52am UTC](https://forum.ansible.com/t/ansible-tower-behind-nginx/24878/1 "2017-07-03T06:52:05Z")

</div>

On the official page, it is said that to host ansible tower behind nginx, you need to provide headers in the `/etc/tower/conf.d/remote_host_headers.py` file.

But, in my `/etc/tower/` folder, there is no `conf.d/remote_host_headers.py` file.

awx@server:/etc/tower$ tree  
.  
├── conf.d  
│ ├── caching.py  
│ ├── celeryd.py  
│ ├── ha.py  
│ ├── postgres.py  
│ └── rabbitmq.py  
├── SECRET\_KEY  
├── settings.py  
├── settings.py.20170629122404  
├── tower.cert  
└── tower.key

How can I host ansible tower via nginx ?

---

<div class="post-metadata">

**Author:** ![Uwe\_Sauter](https://avatars.discourse-cdn.com/v4/letter/u/41988e/32.png) [@Uwe\_Sauter](https://forum.ansible.com/u/Uwe_Sauter)\
**Post date:** [July 3, 2017, 6:53am UTC](https://forum.ansible.com/t/ansible-tower-behind-nginx/24878/2 "2017-07-03T06:53:14Z")

</div>

An uneducated guess: did you try to create the missing file?

---

<div class="post-metadata">

**Author:** ![Luvpreet\_Singh](https://avatars.discourse-cdn.com/v4/letter/l/a5b964/32.png) [@Luvpreet\_Singh](https://forum.ansible.com/u/Luvpreet_Singh)\
**Post date:** [July 3, 2017, 7:01am UTC](https://forum.ansible.com/t/ansible-tower-behind-nginx/24878/3 "2017-07-03T07:01:16Z")

</div>

Okay, and can you help me with that what to do in nginx file ?
