Example With an Apache Server - AFS

AFS Integration Guide

Product
AFS
AFS_Version
7.9
Category
Reference Guide

Apache mod_proxy must be enabled to set up a proxy.

On most systems, it should be done through the a2enmod proxy && a2enmod proxy_http command (as root), but it may require to install a package. Please refer to your system's documentation if it is not possible to enable this mod.

Then, in the site configuration file (probably a virtual host configuration in the sites-available folder), insert the following lines:

ProxyRequests Off
ProxyPass /foo http://afs-host.com
ProxyPassReverse /foo http://afs-host.com

Restart (or simply reload) Apache server.