• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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