• 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!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

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