• 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.

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