3
votes

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?

1

1 Answers

6
votes

Ok, after more experimenting, this works:

<Location /admin>
    ProxyPass http://admin.example.com
    ProxyPassReverse http://admin.example.com
</Location>