[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vps-mail] Formmail Config 101...



On Thu, Jul 14, 2011 at 8:04 AM, Colin Adams <webmaster@xxxxxxxxxxxxxxx> wrote:
>
> If the form refers to the program in the website’s cgi folder, what’s the
> purpose of the script alias?
>

A script alias is used to tell the system where to look for the
executable scripts.  It can allow multiple different users or
different domains to share the same script repository.  The problem is
that if the local folder is called "cgi-bin", and the script alias
also points to "cgi-bin", the computer ends up looking at the wrong
place.

You might be able to get around that problem by using a full directory
path -- that is, rather than having the form call to
"/cgi-bin/myscript.pl"  set it up to call to
"http://www.mydomain.com/cgi-bin/myscript.pl";  -- but I personally
would never set up sharing of the common server cgi-bin with a
subhosted user account, because I would consider it to be a security
concern.   Even when I have used a script alias in the past to allow a
common cgi-bin for all users (for convenience), I have always created
subdirectories for each user account and pointed the script alias to
the sub directory.

-Abigail

========================================================================
This is <vps-mail@xxxxxxxxxxxxx>  <http://groupmail.org/lists/vps-mail/>
Before posting a question, please search the archives (see above URL).


Main Index | Thread Index
Match: Format: Sort by:
Search: