Original URL: http://help.hardhathosting.com/question.php/6
First, login to your control panel and navigate to:
Domain Settings » Web Aliases
Click the "New Alias" button.
Choose the "Script Alias (CGI executable)" radio button option.
In the "URL path (Alias path name)" text box, enter your URL path. For example, if you want http://yourdomain/mydir/ to run CGI scripts, you would enter this:
/mydir/In the "Absolute path name" text box, you would enter the full path to this directory. For example:
/var/www/html/mydir/Note the trailing slashes.
Click "Finish" and your set.
Here is a test CGI script to run to be sure it is working:
#!/bin/perl print "Content-Type: text/html\n\n"; print "Hello world"Be sure to chmod 755 the above script before running it in your browser.