# Reverse Proxy with subpath instead of subdomain

**URL:** <https://forum.inductiveautomation.com/t/reverse-proxy-with-subpath-instead-of-subdomain/58596>\
**Category:** Ignition\
**Tags:** ignition80, perspective\
**Created:** [April 19, 2022, 3:41pm UTC](https://forum.inductiveautomation.com/t/reverse-proxy-with-subpath-instead-of-subdomain/58596 "2022-04-19T15:41:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Koen](https://avatars.discourse-cdn.com/v4/letter/k/a9a28c/32.png) [@Koen](https://forum.inductiveautomation.com/u/Koen)\
**Post date:** [April 19, 2022, 3:41pm UTC](https://forum.inductiveautomation.com/t/reverse-proxy-with-subpath-instead-of-subdomain/58596/1 "2022-04-19T15:41:19Z")

</div>

Hi everyone,

I’ve been experimenting with a Reverse Proxy (Traefik) and been succesful in placing my whole gateway in a sudomain ([http://ignition.mydomain.com](http://ignition.mydomain.com)). The Reverse Proxy handles the TLS and automatically redirects http to https. I can get to the designer, vision launcher and any perspective site. Using Traefik, it seems the necessary headers are automatically added and the only thing I had to do was implement the main/statusping rewrite (see here: [Hard coded request for HTTP in Designer Launcher even if gateway set up for HTTPS - #9 by tom1](https://forum.inductiveautomation.com/t/hard-coded-request-for-http-in-designer-launcher-even-if-gateway-set-up-for-https/34027/9)? - This because I’m using 8.0 and not 8.1 I assume.

So far so good.

Now, I have also been trying to host ignition under a subpath instead of subdomain. So rather than **[http://ignition.mydomain.com](http://ignition.mydomain.com)** I would like to use **[http://mydomain.com/ignition](http://mydomain.com/ignition)**

This I can’t get to work. I’ve done this for a bunch of other web servers, eg. an Apache2 server. On those, I just need to strip out the prefix “/ignition” and make sure that the server knows that it is serving from the particular path (ie. /ignition in this case). I cannot find a similar solution under ignition though. I had a play with the webserver settings for ‘public HTTP address’, where i added ‘[mydomain.com/ignition](http://mydomain.com/ignition)’ but it doesn’t seem to make any difference.

Has anyone any experience with this?

Kind regards  
K

---

<div class="post-metadata">

**Author:** ![kcollins](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kcollins/32/19646_2.png) [@kcollins](https://forum.inductiveautomation.com/u/kcollins)\
**Post date:** [April 19, 2022, 4:23pm UTC](https://forum.inductiveautomation.com/t/reverse-proxy-with-subpath-instead-of-subdomain/58596/2 "2022-04-19T16:23:47Z")

</div>

As of today, the _Public Address_ is only parsed for the server name/address. We’re not parsing/consuming any paths submitted in that field yet… I can create a ticket to look into this–I had tried just what you’re attempting (with Traefik+Docker) long ago (before joining IA) and ran into the same block.

---

<div class="post-metadata">

**Author:** ![Koen](https://avatars.discourse-cdn.com/v4/letter/k/a9a28c/32.png) [@Koen](https://forum.inductiveautomation.com/u/Koen)\
**Post date:** [April 21, 2022, 10:11am UTC](https://forum.inductiveautomation.com/t/reverse-proxy-with-subpath-instead-of-subdomain/58596/3 "2022-04-21T10:11:30Z")

</div>

Thanks for the update - makes sense.

As an example: we run dokuwiki on our server and make it accessible through our reverse proxy (Traefik). In our case, Dokuwiki sits on an Apache2 server. In the configuration section of Dokuwiki, I just had to fill out the server url (ie. “[http://mydomain.com](http://mydomain.com)”) and under the base directory i put “/mywiki/” . In Traefik I just have to strip out the prefix “/mywiki”.

I think the difference with Ignition is that you don’t have a field for the base directory and as you said, you can’t just add it to the server path - which is what i was hoping for.

See Dokuwiki screenshot.

I’m still hopeful that there might be another option in Traefik, like redirecting or rewriting the path. The problem with that is that I really need to know a lot more of all the various endpoints and put rules in for all of them.

Any tips are welcome!! 🙂  
Kind regards  
Koen

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/3/c3e752648678f47d45be57b6da9a9c7c164a967d.png)

---

<div class="post-metadata">

**Author:** ![Adam](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@Adam](https://forum.inductiveautomation.com/u/Adam)\
**Post date:** [January 25, 2023, 2:22pm UTC](https://forum.inductiveautomation.com/t/reverse-proxy-with-subpath-instead-of-subdomain/58596/4 "2023-01-25T14:22:29Z")

</div>

I was trying to do the same thing using a subpath and stumbled upon this thread. Is there any plan to support this?

---

<div class="post-metadata">

**Author:** ![Darren\_Steele](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/darren_steele/32/55624_2.png) [@Darren\_Steele](https://forum.inductiveautomation.com/u/Darren_Steele)\
**Post date:** [February 25, 2024, 10:02am UTC](https://forum.inductiveautomation.com/t/reverse-proxy-with-subpath-instead-of-subdomain/58596/5 "2024-02-25T10:02:24Z")

</div>

I have also been trying to do this and am getting nowhere fast. Anybody got this working?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 25, 2024, 3:21pm UTC](https://forum.inductiveautomation.com/t/reverse-proxy-with-subpath-instead-of-subdomain/58596/6 "2024-02-25T15:21:14Z")

</div>

No, still not possible, AIUI.
