PDA

View Full Version : Organization of www folders


JCR
12-03-2006, 10:46 PM
Hello,
On my unix VPS, "locate cgi-bin" returns:
/var/www/cgi-bin
/var/www/vhosts/default/cgi-bin
/var/www/vhosts/.skel/0/cgi-bin
/var/www/vhosts/.skel/0/cgi-bin/test
/var/www/vhosts/.skel/0/cgi-bin/test/test.cgi
/usr/local/psa/admin/cgi-bin
I have not yet installed any domain and for the time being I am using the server only as a regular computer if you will.

1. What is the difference between /var/www/cgi-bin and /var/www/vhosts/default/cgi-bin, what are they used for?

2. What's the use of /usr/local/psa/admin/cgi-bin?

Thank you

Teej
12-04-2006, 01:34 AM
/var/www/ is the base directory for the default web-server on port 80. vhosts contains folders for each of your domain, plus the default set of pages served when no domains are configured.

/usr/local/psa/admin/ is the Plesk System Administration (psa) web application served over HTTPS.

The .skel files are skeletons used as the basis for creating the standard set of files and directories for new domains and sub-domains.

The apache configuration may make use of directory aliases to point to a server-wide set of cgi-bin applications to save each domain having to maintain its own copy.