• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

How to map Apache vhost file declarations to custom template files?

C

Clarkey

Guest
How to map Apache vhost file directives to custom template files?

Hi folks,
I've just moved onto a new VPS running Plesk 10 and want to configure server-wide support for the LiveCode revServer CGI. This would be a relatively easy procedure for a stand-alone server with an orthodox vhost.conf file, as shown in this LiveCode lesson.

I have copied the default server folder to the /opt/psa/admin/conf/templates/custom folder. Within this, I have edited the server.php custom template file to set 'Options ExecCGI' and 'AllowOverride All' for the /cgi-bin/ directory.

However, I'm struggling to identify which configuration folder/files I need to edit to replicate the following changes to the /httpdocs/ directory:

<Directory <path>/httpdocs>
AllowOverride All
Options MultiViews
Order allow,deny
Allow from all
AddHandler irev-script .irev
Action irev-script /cgi-bin/revserver
</Directory>

Any help gratefully received.
Best,
Keith..
 
Last edited by a moderator:
OK, going through the files once more and deciphering the PHP (which is all new to me), it seems that the same vhosts.php file is the correct one, as the following directory directives seem to point to the web root via <Directory <?php echo $OPT['ssl'] ? $VAR->server->webserver->httpsDir : $VAR->server->webserver->httpDir ?>>
 
Back
Top