• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Changing cgi-bin location

Consultant1027

New Pleskian
We would like URL's that reference the cgi-bin directory to point to a cgi-bin-beta directory instead of cgi-bin but want to still use cgi-bin in the URL.

I tried adding this line to /var/www/vhosts/beta.somesite.com/conf/vhost.conf

ScriptAlias "/cgi-bin/" "/var/www/vhosts/beta.somesite.com/cgi-bin-beta/"

Updated domain

/usr/local/psa/admin/bin/httpdmng --reconfigure-domain beta.somesite.com

Then stop and start Plesk for good measure. But didn't work. Still pulling from cgi-bin directory.

Note this is for a subdomain beta. So the doc root is actually in /var/www/vhosts/somesite.com/httpdocs-beta but as I understand it, if you want to make config changes for the subdomain, you have to do them in /var/www/vhosts/beta.somesite.com since there's only one conf directory under the main domain.


Anyone know how to pull this off?

I'm actually running Plesk 11 but this forum has much more users and I don't think it makes a difference for something like this. Solution should be the same.

Thanks
 
Last edited:
Then I couldn't remember for sure if psa starts/stops apache so I stopped and started apache with:

/etc/init.d/httpd stop

I then can see the error:

[Thu Jan 10 09:57:08 2013] [warn] The ScriptAlias directive in /var/www/vhosts/beta.worldlux.com/conf/vhost.conf at line 20 will probably never match because it overlaps an earlier ScriptAlias.

So question remains, how to override default ScriptAlias then?
 
Hi Consultant1027,

You can adjust vhost PHP template:
/usr/local/psa/admin/conf/templates/default/domain/domainVirtualHost.php
"ScriptAlias "/cgi-bin/" "<?php echo $VAR->domain->physicalHosting->cgiBinDir ?>/""
 
Back
Top