vit has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks,
Am I right that it is possible to use any name for cgi-bin directory. It looks like it works but not everything, so I want to first make sure that it's possible. In
C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\web.xml file I write:
<!-- The mapping for the CGI Gateway servlet --> <servlet-mapping> <servlet-name>cgi</servlet-name> <url-pattern>/cgi-bin/*</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>cgi</servlet-name> <url-pattern>/MyName/*</url-pattern> </servlet-mapping>
so that I use two instances: cgi-bin and MyName in my web server and thus run 2 different Perl/CGI applications.

Is it OK, or I can expect some hidden problems?

Replies are listed 'Best First'.
Re: cgi-bin in tomcat
by jethro (Monsignor) on Sep 02, 2008 at 00:22 UTC

    cgi-bin is nothing but a convention. With the apache directive ScriptAlias for example you can designate as many directories for executable scripts as you want.

    To say it in perlspeak: There is no magic in cgi-bin

Re: cgi-bin in tomcat
by Anonymous Monk on Sep 02, 2008 at 05:15 UTC
    Is it OK, or I can expect some hidden problems?

    Tomcat is a Java Servlet server, and you're asking the perlmonks? Wrong forum.

      Tomcat has the capability to run Perl by activating the CGI-servelet that comes with Tomcat. It seems to work fine, although I wouldn't try to do much volume that way.

      sas