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.

  1. 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.

  2. You're proxying to the host 123.123.123.123, and the VirtualHost directive expects this, but there's no ServerName entry to match the original servername as required by ProxyPreserveHost.

    • Remove ProxyPreserveHost from Server B
    • Add ServerName to Server B to match the IP address defined in Server A's ProxyPass URI

Don't forget to look carefully at the access and error logs generated by Server A and Server B; they exist for good reason.