I'd like to know how to use Apache as a reverse proxy for a specific path and as local server for its sub-paths.
For a specific location, I am using Apache as a reverse proxy (https://my.server.com/my-tools
):
<Location /my-tools>
Order allow,deny
Allow from all
ProxyPass http://10.1.1.11:3101/my-tools
ProxyPassReverse http://10.1.1.11:3101/my-tools
</Location>
The thing is that for its assests I'd like to use the local server (https://my.server.com/my-tools/images/
). I have tried adding Alias with no success:
Alias /my-tools/images/ /home/myself/public/images/
<Directory /home/myself/public/images/>
Order allow,deny
Allow from all
</Directory>
I tried also to add this, but it didn't work either:
<Location /my-tools/images/>
SetHandler None
</Location>
It keeps redirecting to the remote server when I enter https://my.server.com/my-tools/images/myimage.png
, for example.