DevHeads.net

Postings by Leonardo Azize Martins

Maybe infinite loop using ProxyPassMatch

I have the instruction below on Apache configuration:
ProxyPass "/info" unix:/var/run/docker.sock|http://localhost/info
ProxyPass "/version" unix:/var/run/docker.sock|http://localhost/version
ProxyPass "/containers/json"
unix:/var/run/docker.sock|http://localhost/containers/json
ProxyPassMatch "^/containers/([^/]+)/json$"
unix:/var/run/docker.sock|http://localhost/containers/$1/json
ProxyPass / "!"

Requests below works fine:
- <a href="http://server.domain/info" title="http://server.domain/info">http://server.domain/info</a>
- <a href="http://server.domain/version" title="http://server.domain/version">http://server.domain/version</a>
- <a href="http://server.domain/containers/json" title="http://server.domain/containers/json">http://server.domain/containers/json</a>

But this one is not working:
- <a href="http://server.domain/containers/asd123qw" title="http://server.domain/containers/asd123qw">http://server.domain/containers/asd123qw</a>