I have managed to get my "standard" sites working ok. (I discovered that the reason the vhost.conf fileswere having no effect is that a script must be run to rebuild the plesk configuration files - I shall document this somewhere).
I have two (related) sites which are still a problem: They are multilingual and require UTF-8 output. Since Miva 3.x can't write headers, this is achieved by a little shell script called miva-headerwrap:
(sed must win prizes for most obscure syntax!)
# Quick little script to remove the content-type header and allow
# a miva script to provide its own headers
# NOTE: The normal htscookie will also not be set unless its passed back
# NOTE 2: If you do not provide a content-type and a new line the script will
# also internal server error
$pth/miva $* |sed '
on servers where the miva type is already defined, this is called with a one-line .htaccess:
Action application/x-miva /cgi-bin/miva-headerwrap
but I can't get my head around how to call it here:
The standard vhost.conf file is:
If I just substitute miva-headerwrap in the path I get internal server errors - premature end of script headers.
ScriptAlias /miva /var/www/vhosts/[domain]/cgi-bin/miva
DirectoryIndex index.mv index.php index.html
AddType application/x-miva .mv
Action application/x-miva /miva
I have a suspicion that I need to tell the system to use miva first then override that with headerwrap. Is there anyone out there with great server-fu?