Removing trailing slash breaks apache reverse proxy [duplicate]
Solution 1:
Although it's really difficult to correlate subdomain.domain.com
, 123.123.123.123
, and 222.222.222.222
, two issues jump out at me. Here's my take on what I think you're telling us.
-
ProxyPass directives must always have a trailing slash:
<Location /> ProxyPass https://123.123.123.123:1111/ ProxyPassReverse https://123.123.123.123:1111/ </Location>
You corrected this in an edit/update but there are no new testing results to show the effect of the fix.
-
You're proxying to the host
123.123.123.123
, and theVirtualHost
directive expects this, but there's noServerName
entry to match the original servername as required byProxyPreserveHost
.- Remove
ProxyPreserveHost
from Server B - Add
ServerName
to Server B to match the IP address defined in Server A'sProxyPass
URI
- Remove
Don't forget to look carefully at the access and error logs generated by Server A and Server B; they exist for good reason.