I am facing 2 issues with Apache mod_proxy and substitute.
1. I have a substitute like say:
Substitute "s/http/https/ni"
It works perfectly fine when I do curl. But on browser, it somehow doesn't seem to apply the substitute, it still remains http. What could be the reason, how to debug this?
2. I have reverse proxy server on machine M1 for a backend server(http) running on local machine, whose service if down redirect me to http service of backend machine M2, which also has a reverse proxy running.
M1 proxyserver --> http(M1) --> http (M2)
If backend on M1 is down, I want the redirection to go to https of backend machine, instead of http or M1 to act as proxy for M2 backend also, if M1 backend is down
How can this be done?