Refer: digitalocean.com

Diagram:

Step to configuration:

  • Nginx: Edit /etc/nginx/sites-enabled/your-site-config.conf add:
  • Apache:
    • Apache mods folders:
      • /etc/apache2/mods-enabled/
      • /etc/apache2/mods-available/
    • Install mod mod_rpaf:
    • Configuration apache using mod_rpaf: