[users@httpd] Help: CGI not executing outside of /cgi-bin/

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Apache 2.0.51  Solaris 9

Im trying to get 1 file, show.cgi, to execute outside of /cgi-bin/

show.cgi (PERL) resides under /foo/bar  For now show.cgi is just a
"Hi" program.

	#!/usr/bin/perl -T

	use strict;
	use warnings;

	printf("Content-Type: text/html\n\n");
	printf("hi");

owner: nobody     perms: 555   Executes fine from the commandline.


For most part I know what needs to be added to make this work, but Im
getting the source code on the screen, instead of the output.

Nothing in the error log; access log returns a 200.

I looked at http://httpd.apache.org/docs/2.0/howto/cgi.html to see if
I was missing anything.  Apparently not.



<Directory "/usr/local/apache/htdocs/foo/bar">
        AllowOverride Options
        Options +ExecCGI

        <IfModule mod_mine.c>
#               <Files "show.cgi">
                        AddHandler cgi-script .cgi
#               </Files>
        </IfModule>
</Directory>

Ive looked at the other directives for /foo and for /, but I cannot
see anything that would cause the source code to print out.  I dont
use .cgi extensions anywhere else on the web server.


What could I be forgetting?


Thanks
 Birl

Please do not CC me responses to my own posts.
I'll read the responses on the list.

Archives   http://mail-archives.apache.org/mod_mbox/httpd-users/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux