Page Proxy Redirection

Basically I need to redirect the traffic from a base sub domain to a localhost instance with a different port and a sub path
I have a local domain of nic.local and a subdomain of phpmyadmin.nic.local where I want to access the phpmyadmin web gui.
phpmyadmin console is currently being served on http://localhost:81/phpmyadmin
I place the link on the loadbalancer

servers:
  - url: "http://localhost:81/phpmyadmin"

But it redirects me on the https://phpmyadmin.nic.local/dashboard which ofc is not existing.

I used replacePath but it directs me to https://phpmyadmin.nic.local:81/phpmyadmin which results to 404 page.

Problems I encounter right now

  1. It directs me to the localhost:81 instead of using the path /phpmyadmin
  2. it appends the path to the subdomain when accessing

Desired output:

  1. Access phpmyadmin.nic.local and get access to the http://localhost:81/phpmyadmin

Any help on redirect is a great start! Thank you!

By adding a prefix solved my problem

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.