I have problem with leading double double slash when I use apache reverse proxy. ($_SERVER['REQUEST_URI'] always starts with //, except when I access directly root.
Configuration
ProxyPass /admin/ http://admin.example.com/
ProxyPassReverse /admin/ http://admin.example.com/
or
<Location /admin>
ProxyPass http://admin.example.com/
ProxyPassReverse http://admin.example.com/
</Location>
I've tried all possible combinations like
but no luck. Did I miss something?
Ok, after more experimenting, this works:
<Location /admin>
ProxyPass http://admin.example.com
ProxyPassReverse http://admin.example.com
</Location>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With