• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Adding replacement Alias to vhost.conf

WillGonz

New Pleskian
So I know all the .conf files say not to edit them and to edit the vhost.conf instead.

I would like to add a:
Code:
Alias /cgi-bin/ /var/www/vhosts/blah.com/httpdocs/cgi-bin/
<Directory /var/www/vhosts/blah.com/httpdocs/cgi-bin/>
AddHandler cgi-script .cgi
Options ExecCGI
</Directory>

I need to do this so I can do http://blah.com/cgi-bin/helloworld instead of http://blah.com/cgi-bin/helloworld/index.cgi.
If I edit my last_http.conf it works fine, but that is not the best way.

My question is how do I make it so it cancels out the previous ScriptAlias and uses the one in my vhost.conf?
I tried and now it does " [warn] The Alias directive in /var/www/vhosts/system/blah.com/conf/vhost.conf at line 10 will probably never match because it overlaps an earlier ScriptAlias."

Thanks
 
Back
Top