Certain site-wide properties of Vortex can be set in the Texis configuration file conf/texis.ini. For details on the format of this file, and settings that apply to other programs, see the "Texis Configuration File" section of the Texis manual. Also note that many of these settings can be overridden by the Texis Web Server (vhttpd) configuration file; see here.
The following Vortex-specific settings appear under the [Texis] section of conf/texis.ini:
vhttpd
), this value can
be overridden in the vhttpd.conf
file
(here).
putmsg
errors generated by the attempt to start the requested script are
saved for capture by the ErrorScript's <putmsg>
function. This enables the ErrorScript to control what
errors are seen by the user, even for errors that other scripts
can't capture. It can then take appropriate action such as
generating a useful error page, redirecting to another page,
notifying the site administrator, etc. Vortex is installed with
the error script texis/scripts/errorscript configured as an
example.
Note that any errors generated by the requested script after
it has started are capturable by that script's <putmsg>
,
not the ErrorScript. Hence the main script's
<putmsg>
function should be the first place to put error
checking. ErrorScript is for fatal startup errors.
The ErrorScript value is a file path to a Vortex script,
typically /usr/local/morph3/texis/scripts/errorscript.
If a relative path is specified, it is taken as relative to the
web server's SERVER_ROOT
directory. This allows multiple
ErrorScripts to be specified across multiple web servers
via the single texis.ini
file. (Note that the web server
must set the environment variable SERVER_ROOT
for relative
paths to work.)
When running the Texis Web Server (vhttpd
), the
ErrorScript value can be overridden in the
vhttpd.conf
file (here). Added in
version 4.00.1018000000 20020405.
%errors%
in the file is replaced with the text of any error
messages. Note that this is a plain HTML file, intended as a
last-ditch "fallback" if ErrorScript fails. Primary
responsibility for handling errors should lie with the
<putmsg>
function in the main script first, then the
ErrorScript script, then ErrorFile.
The ErrorFile value is a file path to a plain HTML file,
typically /usr/local/morph3/texis/scripts/errorfile.
If a relative path is specified, it is taken as relative to the
web server's SERVER_ROOT
directory. This allows multiple
ErrorFiles to be specified across multiple web servers
via the single texis.ini
file. (Note that the web server
must set the environment variable SERVER_ROOT
for relative
paths to work.)
When running the Texis Web Server (vhttpd
), the
ErrorFile value can be overridden in the
vhttpd.conf
file (here).
Added in version 4.00.1018000000 20020405.
DOCUMENT_ROOT
environment variable).
In version 5 and later, the default is %INSTALLDIR%/texis/scripts: this helps avoid permission
problems with compiling scripts, e.g. where the CGI user does not
have permission to write .vsc
files to
document root. It also prevents Web users from downloading the
contents of Vortex scripts, as they are now outside the web server
tree.
The ScriptRoot value is a file directory. If a relative
path is specified, it is taken as relative to the web server's
SERVER_ROOT
directory. This allows multiple
ScriptRoots to be specified across multiple web servers via
the single texis.ini
file. (Note that the web server must
set the environment variable SERVER_ROOT
for relative paths
to work.)
In version 5 and later, ScriptRoot can also be set to the
special value "%DOCUMENT\_ROOT%
" (no prefixes/suffixes) to
use the current document root as the script root. This may be for
back compatibility with a version 4 installation, or where
multiple web servers are being run and a different script root is
desired for each server.
When running the Texis Web Server (vhttpd
), the
ScriptRoot value can be overridden in the
vhttpd.conf
file (here).
This setting was added in version 4.00.1017300000 20020327.
vhttpd
VortexByExtPath
or Apache CGI by-file-extension mappings.
Added in version 5.01.1158816000 20060921.
ext-IIS-prefix
When SCRIPT_NAME ends in one of the non-empty
Vortex Source Extensions or ".vsc", and
SERVER_SOFTWARE starts with "Microsoft/IIS",
and SCRIPT_NAME is a prefix of PATH_INFO.
This typically indicates a Microsoft IIS/6.0 application
mapping, where both SCRIPT_NAME and PATH_INFO
contain the Vortex script.redirect_handler=action-name
When the environment variable REQUEST_HANDLER is
set to action-name. This may indicate an Apache 2.1+
Action/AddHandler by-file-extension mapping,
where using SCRIPT_NAME would give a usable URL,
but different from the request (and thus break cookies).exe-IIS-prefix
When SCRIPT_NAME ends in ".exe", and
SERVER_SOFTWARE starts with "Microsoft/IIS",
and SCRIPT_NAME is a prefix of PATH_INFO. This
typically indicates a Microsoft IIS/7.0 Script Map (instead of
a CGI-exe map), where both SCRIPT_NAME and
PATH_INFO contain the "texis.exe" value, and
PATH_TRANSLATED is incorrect. SCRIPT_NAME will
actually be removed from PATH_INFO instead of being
ignored, in this instance. Added in version 5.01.1229472493 20081216.always
Always ignore SCRIPT_NAME.
syntaxversion
8 and later, as loop
statements returning $ret are effectively ROW
.
See also [Texis] Warn All (here).
pragma
is
used. Overridden by the --[no-]warn-unknown-pragma option;
see here for details.
Added in version 7.07.1574459000 20191122.
See also [Texis] Warn All (here).
urlcp
(here). Added in version 4.01.1031693207 20020910.
charsetconfigfromfile
setting of <urlcp> (here)
for details on the file format. If unset, the default charset
config file is conf/charsets.conf in the install dir. If
the config file cannot be found, an internal default config is
used. Added in version 6.
PRINTIF
flag to <header>
statements. Overridden by setting PRINTIF
non-empty in a
<header> statement (here). Note that the
default (headers) is a behavior change from prior versions
(previous default was always). Added in version
5.01.1111422505 20050321.
<if>
or
assignment. Added in version 5.01.1157523656 20060906.
-dump
option, in CGI mode. Added in version
4.02.1047916696 20030317.
<sort>
/<uniq>
should be
SHORTEST
, not LONGEST
. Added in version
5.01.1189552000 20070911. Previously all <sort>
s were
SHORTEST
(i.e. the default was 1).
<sqlcp arrayconvert>
; same syntax.
Setting off restores
pre-version-6 Vortex variable behavior with strlst
etc.
<sqlcp arrayconvertwarnifv8change>
(here); same syntax.
<addtrailingslash>
directive
(here), which overrides this. Added in
version 5.01.1227568000 20081124.
<exec quoteargs>
flag
(here). Added in version 6.
texisdefaults
is deprecated, since Texis defaults have
changed to match Vortex defaults. The texisdefaults
setting still takes effect, but as it may be removed in a future
release, a warning is issued to encourage its removal in scripts.
The setting <apicp querysettings texis5defaults> should be used
instead.
If legacy scripts cannot be changed after an upgrade to version 6 or later, the warning may be silenced by changing it to off. Added in Texis version 6.
.vsc
object
file where possible, rather than interpret them on the fly at
run-time. SQL expressions are used in parenthetical variable
assignments (e.g. <$x = ($y + 5)>) and complex <if>
statements, amongst other places. Compiling them speeds up script
execution, as the original expression then does not need to be
re-interpreted by the SQL engine every time the statement is run.
This setting can be overridden in a script with the
compilesqlexpressions
pragma
(here). Added in version 6.01.
If non-empty, when using <!-- pragma literalprint off ->, lines that begin with this prefix are still allowed to be printed. Useful for defining a project-wide debug syntax for quick output, but can easily be verified that it's removed by compiling with this cleared.
E.g. Allowed Literalprint Prefix = +++ will allow lines starting with +++.