An alternate method for configuring Apache to run Vortex scripts by
.vs) is to have Apache execute the scripts directly,
instead of using a redirect handler. This method is less desirable
than the redirect-handler method (above) for several reasons:
ScriptRoot. This means the document root must be writable by the
texisor CGI user (for
.vtxcompilation), and the script sources are accessible to users (though it may be possible to configure the web server to prevent the latter).
#!/usr/local/morph3/bin/texisprefix at the start.
However, this alternate procedure may be used if the preferred
redirect-handler method is not possible or practical for some reason.
Consult your web server manual (or online at
http://www.apache.org/) for details and consequences on the
directives used in this procedure:
/etc/httpd/conf/httpd.conf; see your web server manual) with a text editor.
<Directory ...>directive that applies to the same directory as the
DocumentRootdirective. This is typically (but not always)
<Directory ...>directive, add
ExecCGIas an option to the
</Directive>), add this line:
AddHandler cgi-script .vs
ScriptRootto the same dir under document root. (This step is not needed if for some reason you have edited your Vortex
texis.inifile and set
%DOCUMENT_ROOT%.) For example, the
/usr/local/morph3/texis/scripts/webinatorshould be copied to the
/var/www/html/webinatordirectory (create it if needed), assuming your Apache
#!/usr/local/morph3/bin/texis(If your Webinator install directory is not
/usr/local/morph3, change it appropriately.) This step and the next are needed even if
chmod a+rxon every script you copied and edited.
/etc/init.d/httpd restart; check your web server manual).
Note that if you are running Apache for Windows, you may also need to
set or edit the
ScriptInterpreterSource directive; see your
web server manual.