# Template to proxy pass to a subpath

**URL:** <https://forum.hestiacp.com/t/template-to-proxy-pass-to-a-subpath/1500>\
**Category:** Uncategorized\
**Created:** [August 12, 2020, 1:31pm UTC](https://forum.hestiacp.com/t/template-to-proxy-pass-to-a-subpath/1500 "2020-08-12T13:31:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![deepakpt](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@deepakpt](https://forum.hestiacp.com/u/deepakpt)\
**Post date:** [August 12, 2020, 1:31pm UTC](https://forum.hestiacp.com/t/template-to-proxy-pass-to-a-subpath/1500/1 "2020-08-12T13:31:24Z")

</div>

I am trying to proxy pass a [mydomain.com/path](http://mydomain.com/path) to a port. I created a proxy template by creating a new template like this [https://pastebin.com/ukzSaS2r](https://pastebin.com/ukzSaS2r)  
but these only get blank pages. Can someone provide the correct template format?

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [August 12, 2020, 2:19pm UTC](https://forum.hestiacp.com/t/template-to-proxy-pass-to-a-subpath/1500/2 "2020-08-12T14:19:20Z")

</div>

You can try this

> <https://serverfault.com/questions/562756/how-to-remove-the-path-with-an-nginx-proxy-pass>

Not tested …

---

<div class="post-metadata">

**Author:** ![deepakpt](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@deepakpt](https://forum.hestiacp.com/u/deepakpt)\
**Post date:** [August 12, 2020, 8:13pm UTC](https://forum.hestiacp.com/t/template-to-proxy-pass-to-a-subpath/1500/3 "2020-08-12T20:13:08Z")

</div>

Still not working. This only happen if I want to add /path to domain . Proxy pass to [domain.com](http://domain.com) works correctly with same example template.
