When you configure a cgi script for any server, it may ask you to set variables such as the base, relative, and CGI directory/url settings.
** In case of cPanel/WHM, DirectAdmin and Interworx based servers the home directory will be /home/USERNAME/
Your webpath will be
/home/USERNAME/public_html/
which will serve:
http://www.your_domain.com/
So if you need the path to your cgi-bin it would be:
/home/USERNAME/public_html/cgi-bin/
which would serve:
http://www.your_domain.com/cgi-bin/
** In case of Plesk based servers the home directory will be /var/www/vhosts/DOMAIN.TLD/
Your webpath will be
/var/www/vhosts/DOMAIN.TLD/httpdocs/
which will serve:
http://www.your_domain.com/
So if you need the path to your cgi-bin it would be:
/var/www/vhosts/DOMAIN.TLD/cgi-bin/
which would serve:
http://www.your_domain.com/cgi-bin/