The site is running Linux on an Apache server,
powered by ensim (www.ensim.com). the site has a
master domain URL. We have four other URLs that we
want to access the master domain or jump to a given
page at the site via an index.cgi control page. I need
some code to accept the URLs and feed the command
to the index.cgi. The four URLs are pointed to the host,
ns1 and ns2, site, or should they be targeted to the
master domain’s static address. We have tried
the following:
Added a .htaccess file to /var/www/html/ with the
following:
AddHandler cgi-script .cgi .pl
Options +ExecCGI
DirectoryIndex index.cgi index.html index.htm
This allows cgi scripts to run in this directory, which they
do not do by default (by default they only run in the cgi-
bin). Also added the DirectoryIndex setting so that the
index.cgi file overrides the current index.html file.
chmoded index.cgi to 755 to allow it to execute, and
corrected the path to perl in this file.
The additional URLS are not in the aliased to master
host’s DNS.
Thank you, Walter R Haessner