ImHosted.com FAQ


Match word(s).

Home : Customer Support Center : FAQ Index

How do I allow execution of .cgi scripts outside of cgi-bin?

Make a .htaccess file and inside it place:

Options ExecCGI
AddHandler cgi-script .cgi

Next upload the .cgi file and it will display properly, example test.cgi:

#!/bin/sh
#\
exec tclsh "$0" ${1+"$@"}
puts "Content-Type: text/html"
puts ""
puts "Hello World!"

This example outputs "Hello World!" using Tcl.




© ImHosted.com, All Rights Reserved.


Script provided by SmartCGIs.com