CGI (Perl) works in any folder (directory). However, for security reasons, only CGI files can be displayed in the standard "cgi-bin" folder.Other folders can be used without restrictions.