An alternate method for configuring Apache to run Vortex scripts by
extension (.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 texis
or CGI user (for .vsc
compilation), 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/texis
prefix at the start.chmod
.
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
https://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 DocumentRoot
directive.
This is typically (but not always) <Directory /var/www/html>
.<Directory ...>
directive, add
ExecCGI
as an option to the Options
directive.</Directive>
),
add this line:
AddHandler cgi-script .vs
ScriptRoot
to the same dir under document
root. (This step is not needed if for some reason you have
edited your Vortex texis.ini
file and set
ScriptRoot
to %DOCUMENT_ROOT%
.) For example,
the dowalk.vs
and search.vs
scripts in
/usr/local/morph3/texis/scripts/webinator
should be
copied to the /var/www/html/webinator
directory (create
it if needed), assuming your Apache DocumentRoot
is
/var/www/html
.#!/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 ScriptRoot
is
%DOCUMENT_ROOT%
.chmod a+rx
on 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.