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
- It directs me to the localhost:81 instead of using the path
/phpmyadmin
- it appends the path to the subdomain when accessing
Desired output:
- Access
phpmyadmin.nic.local
and get access to thehttp://localhost:81/phpmyadmin
Any help on redirect is a great start! Thank you!