apache: cgi script not in cgi-bin

apache: cgi script not in cgi-bin

Post by ±è??? » Fri, 09 Apr 1999 04:00:00



Hi.
How can i make perl script which is not in cgi-bin directory work?
I am going to user cross-reference which is some cgi program( it's not
important).
This program need that cgi sript(that is perl) should be in subdirectory of
html.
How can i make it out?
I did in httpd.conf
<Directory /htmlbase>
AllowOverride All
</Directory>
and
in the directory , i made .htaccess file with proper syntax( this is
recommed in program install file).
but it doesn't work.
Only difference is that I got message "Forbidden permission" in browser.
When i didn't make .htaccess file, browser just show content of perl file
instead of working.
Could you help me?
The program can be downloaded on http://lxr.linux.no( the name is
cross-reference).
 
 
 

apache: cgi script not in cgi-bin

Post by Wolfgang Losk » Fri, 09 Apr 1999 04:00:00



> Hi.
> How can i make perl script which is not in cgi-bin directory work?
> I am going to user cross-reference which is some cgi program( it's not
> important).
> This program need that cgi sript(that is perl) should be in subdirectory of
> html.
> How can i make it out?
> I did in httpd.conf
> <Directory /htmlbase>
> AllowOverride All
> </Directory>

If it is not enabled for the whole server, you have to
manualy set it on a per directory base via:

<Directory /htmlbase>
Options ExecCGI
</Directory>

Also make sure that the path to perl is correct and that
proper permissions are set ...

W.

--
Wolfgang Loske                         Innovating HighTech Communication

http://www.t3medien.de                                Naegelsbachstr. 26
Fon: +49 9131 7448-0  Fax: +49 9131 7448-10               91052 Erlangen
PGP Fingerprint: A540 3314 8058 A22E  E7E3 ADE2 587B 010C  (Key on req.)

 
 
 

apache: cgi script not in cgi-bin

Post by Steven Fletch » Fri, 09 Apr 1999 04:00:00




Quote:>I did in httpd.conf
><Directory /htmlbase>
>AllowOverride All
></Directory>

You probably need the ScriptAlias directive, either for your main site
in httpd.conf, or in a VirtualHost directive. For more info, see
http://www.apache.org/docs/mod/mod_alias.html#scriptalias


       Shellnet - http://www.shellnet.com

 
 
 

apache: cgi script not in cgi-bin

Post by Kurt J. Lanz » Fri, 09 Apr 1999 04:00:00



> Hi.
> How can i make perl script which is not in cgi-bin directory work?
> I am going to user cross-reference which is some cgi program( it's not
> important).
> This program need that cgi sript(that is perl) should be in subdirectory of
> html.
> How can i make it out?
> I did in httpd.conf
> <Directory /htmlbase>
> AllowOverride All
> </Directory>
> and
> in the directory , i made .htaccess file with proper syntax( this is
> recommed in program install file).
> but it doesn't work.
> Only difference is that I got message "Forbidden permission" in browser.
> When i didn't make .htaccess file, browser just show content of perl file
> instead of working.
> Could you help me?

Add an "Options ExecCGI" to the directory entry. Then go RTFM. I admit
somt of the directives you need in Apache to make certaint things
happen can be confusing, but that's no excuse not to at least try to
figure them out. Take an afternoon to read the descriptions of all the
available directives. It will at least give you a vague idea where to
look when the next problem pops up.
 
 
 

apache: cgi script not in cgi-bin

Post by Raghura » Fri, 09 Apr 1999 04:00:00


Hi!

Quote:> How can i make perl script which is not in cgi-bin directory work?

You need to use ScriptAlias directive.

e.g.

ScriptAlias /cgi-bin/ /htmlbase
--
Best regards,
Raghu

 "Avarice, envy, pride,
Three fatal sparks, have set the hearts of all On Fire."
-Dante Alighieri, Divine Comedy, The

 
 
 

apache: cgi script not in cgi-bin

Post by Wolfgang Losk » Sat, 10 Apr 1999 04:00:00



> Hi!

> > How can i make perl script which is not in cgi-bin directory work?

> You need to use ScriptAlias directive.

> e.g.

> ScriptAlias /cgi-bin/ /htmlbase

That is not 100% correct. He _may_ use it that way but he does
not need to ... a simple 'Options ExecCGI'on that directory
is enough ...

W.

--
Wolfgang Loske                         Innovating HighTech Communication

http://www.t3medien.de                                Naegelsbachstr. 26
Fon: +49 9131 7448-0  Fax: +49 9131 7448-10               91052 Erlangen
PGP Fingerprint: A540 3314 8058 A22E  E7E3 ADE2 587B 010C  (Key on req.)

 
 
 

1. /cgi-bin/phf /cgi-bin/test-cgi /cgi-bin/handler

I've been seeing a number of attacks of this sort recently
from various sites in the http logs.  The time correlation
between the logs on various hosts suggests that the attacker
was scanning sequentially upward in IP addresses.  Since all
tcp and udp packets to ports below 1024 except for http,
smtp, and ident are filtered out for most, including the
attacking, sites, I'm not seeing anything else in the logs.

209.61.73.47 - - [04/Jul/1998:07:19:27 -0500] "GET /cgi-bin/phf" 404 -
209.61.73.47 - - [04/Jul/1998:07:19:28 -0500] "GET /cgi-bin/test-cgi" 404 -
209.61.73.47 - - [04/Jul/1998:07:19:28 -0500] "GET /cgi-bin/handler" 404 -

Is this a signature of some known attackware?  If so, what
other attacks accompany these http probes?

--

2. openoffice package available?

3. apache: give /home/mailman/cgi-bin permissions to run cgi-scripts.

4. reading PCI chip info

5. cgi-bin/view-source?cgi-bin/view-source

6. : Sujestions for which distrabution to get.

7. CGI-BIN Perl Script Not Routed Back to Browser using Apache

8. Maybe solved ppp chat 'typewriter' problem

9. Running cgi scripts outside /cgi-bin directory

10. Cannot execute CGI programs in /cgi-bin with Apache

11. How could let CGI run not only at cgi-bin?

12. Linux/Apache - my cgi-bin script can't write/redirect files in any directory

13. Apache 1.3.4 configuration for cgi-bin/script directory specification