Hello All,
I am trying to set up a webserver using Caddy, however, some applications are running on different ports (same server), therefore I use the proxy functionality as well, however unsuccessful. Googling, SO’ing and going over this forum has not given me the solution so far.
I have tried various configurations, let me go over a few of them from simple to “more” extended.
Goal: Run website on 443, oauth is running on 9090 with an endpoint oauth/token.
Expectation: When I hit a button that has a link http://[ip]:443/oauth/token I expect it to go over port 9090.
Actual happening: When I click the button with linkt http://[ip]:443/oauth/token it remains this link.
Config:
:443 { # Also tried with https://[ip]
proxy /oauth localhost:9090 {
transparent
}
}
Does it have todo with the fact that I do not have a domain name? I have also tried without the transparent and a view other things that were more trail and error.
I am running Ubuntu 18.04.1 LTS (Bionic Beaver)
Thanks for any suggestion