# Reverse proxy and port redirection

**URL:** <https://forum.hestiacp.com/t/reverse-proxy-and-port-redirection/859>\
**Category:** Community Support\
**Created:** [May 14, 2020, 5:10pm UTC](https://forum.hestiacp.com/t/reverse-proxy-and-port-redirection/859 "2020-05-14T17:10:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![crazytoo](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/c/c0e974/32.png) [@crazytoo](https://forum.hestiacp.com/u/crazytoo)\
**Post date:** [May 14, 2020, 5:10pm UTC](https://forum.hestiacp.com/t/reverse-proxy-and-port-redirection/859/1 "2020-05-14T17:10:59Z")

</div>

How do i proxy to another port like [https://34.324.34.34:4432](https://34.324.34.34:4432)

---

<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:** [May 14, 2020, 5:23pm UTC](https://forum.hestiacp.com/t/reverse-proxy-and-port-redirection/859/2 "2020-05-14T17:23:22Z")

</div>

You can create a new template in /usr/local/hestia/data/templates/web/nginx/

You will see  
[https://github.com/hestiacp/hestiacp/blob/master/install/deb/templates/web/nginx/default.tpl](https://github.com/hestiacp/hestiacp/blob/master/install/deb/templates/web/nginx/default.tpl)

and default.stpl

`cp default.tpl new_name.tpl`

repeat the same for \*.stpl

Then you can modify your tpl files

```
location / {
    proxy_pass http://%ip%:4432;
    location ~* ^.+\.(%proxy_extentions%)$ {
        root %docroot%;
        access_log /var/log/%web_system%/domains/%domain%.log combined;
        access_log /var/log/%web_system%/domains/%domain%.bytes bytes;
        expires max;
        try_files $uri @fallback;
    }
}

```

If you have NGiNX + PHP-FPM but no Apache2 installed the files are located in the php-fpm folder

/usr/local/hestia/data/templates/web/nginx/php-fpm

---

<div class="post-metadata">

**Author:** ![crazytoo](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/c/c0e974/32.png) [@crazytoo](https://forum.hestiacp.com/u/crazytoo)\
**Post date:** [May 14, 2020, 8:03pm UTC](https://forum.hestiacp.com/t/reverse-proxy-and-port-redirection/859/3 "2020-05-14T20:03:36Z")

</div>

okay so there is no solution in the panel its manual thanks

---

<div class="post-metadata">

**Author:** ![xeruf](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/xeruf/32/8510_2.png) [@xeruf](https://forum.hestiacp.com/u/xeruf)\
**Post date:** [April 4, 2023, 8:01pm UTC](https://forum.hestiacp.com/t/reverse-proxy-and-port-redirection/859/4 "2023-04-04T20:01:10Z")

</div>

shouldn’t it be fairly easy to add the ability to add a port in the web domain settings?

---

<div class="post-metadata">

**Author:** ![xeruf](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/xeruf/32/8510_2.png) [@xeruf](https://forum.hestiacp.com/u/xeruf)\
**Post date:** [April 4, 2023, 8:34pm UTC](https://forum.hestiacp.com/t/reverse-proxy-and-port-redirection/859/5 "2023-04-04T20:34:30Z")

</div>

See [Nginx custom proxy (feature request) · Issue #1453 · hestiacp/hestiacp · GitHub](https://github.com/hestiacp/hestiacp/issues/1453)

---

<div class="post-metadata">

**Author:** ![liamgibbins](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/liamgibbins/32/916_2.png) [@liamgibbins](https://forum.hestiacp.com/u/liamgibbins)\
**Post date:** [April 7, 2023, 11:36am UTC](https://forum.hestiacp.com/t/reverse-proxy-and-port-redirection/859/6 "2023-04-07T11:36:46Z")

</div>

Personally i use hestiacp for personal websites.

I found it easier to run proxy manager infront of hestacp to redirect traffic to another service such as gittea or something and just update it when i add a new domain.

Can not wait until you can do this in the panel will save having to have docker installed etc.
