On Thu, 1 Dec 2022 16:06:31 +0000
> I do not want to put .rvt and .tcl skripts in the DocumentRoot
> directory together with html file. I want them in a separated
> directory, as it is the case with cgi scripts, also with a
> ScriptAlias as with cgi. How to configure apache?
My sites-enabled/...conf file looks like this (some names anonymised):
# The http website
# SVP 14OCT2022: This will need to be changed to WARN or ERROR.
CustomLog /home/.../logs/access.log combined
# The main Rivet script
RivetServerConf ChildInitScript "source /home/.../www/childinit.tcl"
# All urls to go to the main script.
RewriteRule ^(.*)$ /index.tcl [L]
Options Indexes FollowSymLinks MultiViews
Require all granted
I keep the two main scripts, childinit.tcl and index.tcl in the .../www
directory, and all the other tcl scripts for the website site
in .../www/lib, in their own directory. I don't put any scripts in any
other place like /usr/lib/exec/cgi. I don't have any html or other
files in .../www. All requests go to my index.tcl and it serves the
content from a database.
I'm not sure exactly what you want to do, but I hope that helps a