I am attempting to proxy and endpoint on my domain to a back-end server.
I can get all my other proxies to work, but this one has a redirect to a login page, and I think it is messing things up.
*side-note: The backend server is an application called Weblog Expert.
I was hit with a Ransome attack last month and lost all my data… (sad)
Weblog Server helps me watch who is attempting to access Caddy by reading the Caddy logs… (happy!)
In my Caddy file I have written many attempts to proxy the server:
proxy /reports localhost:9991 {
transparent
websocket
}
And also:
proxy /reports localhost:9991 {
without /reports
transparent
websocket
}
This is where things get wonky…’
If I test my URL:
192.168.2.126:2015/reports
I would expect my URL to look like this after WebLog Expert has redirected to a login page:
http://192.168.2.126:2015/reports/Login.aspx?ReturnUrl=%2fdefault.aspx
That URL above is correct, in fact, if I use that URL caddy does redirect me to the proper page
However, my url ends up like this:
http://192.168.2.126:2015/Login.aspx?ReturnUrl=%2freports
This is weird because it is pushing the ‘reports’ endpoint to the end of the URL.
That is where I’m kinda stuck.
If I use the ‘without /reports’ parameter, I get an expected result URL:
http://192.168.2.126:2015/Login.aspx?ReturnUrl=%2fdefault.aspx
But, that goes nowhere, it needs ‘/reports’ in the URL.
Thanks to anyone who could help me.
Benny