How to setup a reverse proxy via Nginx?

Note: always replace “client.com” with your hostname, “client.backend.verbolia.com” with the given verbolia hostname and “/path_to_verbolia/” with the agreed routed url pattern.

  • Append your sites-available configuration.
    Edit your sites-available.conf file and add the proxy_pass instructions:

    location /path_to_verbolia/ {
        resolver 1.1.1.1 valid=3600s; #needed to avoid nginx caching the ip address
        proxy_ssl_server_name on; #needed to handle SNI certificates
        proxy_set_header Host client.backend.verbolia.com;
        proxy_pass https://client.backend.verbolia.com;
    }

  • Restart nginx

nginx -t
systemctl restart nginx