Server Paths Print

  • 22

Path to directory: /var/www/vhosts/yourdomain.com
HTML directory: /var/www/vhosts/
yourdomain.com/httpdocs
CGI directory: /var/www/vhosts/
yourdomain.com/cgi-bin

The server paths may be necessary for CGI scripts and other similar programs, you won’t need them for regular web page
uploading. When making FTP connections to upload/download files, you will be placed in the " yourdomain.com "
portion of the site; it will not show you the preceding directories. Certain CGI scripts need to know the entire path to the
directory they are stored in. For example, if you have a CGI program named my-program.cgi, this script may need to have a variable set to tell it what directory it is running in. If it was uploaded via FTP and placed in the
www.yourdomain.com/cgi-bin directory, it’s actual path would be
/var/www/vhosts/yourdomain.com/cgi-bin/my-program.cgi” so that is what you would set in the file.

Was this answer helpful?

« Back