Score:0

Apache proxy removes double slash

lr flag

I'm trying to send requests to a docker image by using apache's proxy functionality. The request to the docker should look something like: https://127.0.0.1:8282/somepath/https://somedomain/someimage.jpg but it is being forwarded like https://127.0.0.1:8282/somepath/https:/somedomain/someimage.jpg (so missing one slash).

I think this is probably some default to prevent issues with directories accidentaly having double slashes, but can I somehow change some setting that makes it not do this? Or can I put it back using some rewrite regex magic?

Score:0
jp flag

You could handle the protocol in your receiving app, no need to have https:// in the url right?

Perhaps use nginx as substitue for the proxy?

datadevil avatar
lr flag
the receiving app is a docker image which I just get as-is, so it's hard to handle there. Other alternative is indeed nginx, but I use Apache as server+proxy, so that means migration or adding nginx to the mix (both not nice). One other solution I may have is to let my Spring Boot api handle this, as that is also behind this proxy.
jp flag
You could use another pubic port for this
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.