RE: CGI-BIN

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

 



Hello Devraj, 
I already have the following line in my httpd.conf

 ScriptAlias  /cgi-bin/  "/usr/local/www/cgi-bin/"

Can I add a second directory? 
ScriptAlias /second/  "/usr/local/www/second/"   <-- I added second line but
apache won't recognize the cgi scripts in side this dir. 

Thanks, 
-Motty

-----Original Message-----
From: Devraj Mukherjee [mailto:devraj@xxxxxxxxx] 
Sent: Thursday, October 28, 2010 3:24 PM
To: users@xxxxxxxxxxxxxxxx
Subject: Re:  CGI-BIN

Hi Motty,

On Fri, Oct 29, 2010 at 9:11 AM, motty.cruz <motty.cruz@xxxxxxxxx> wrote:
> Hello,
> I'm trying  to get apache to execute cgi scripts outside  cgi-bin
> directory(/usr/local/www/cgi-bin) instead I want to run scripts from 
> /usr/local/www/directory. I google it but most furums are for Linux. 
> My machine is a FreeBSD 8.1 running Apache 1.2 Any help is 
> appreciated.

You have to explicitly allow CGI execution

   ScriptAlias /cgi-bin/ "/usr/local/www/apache22/cgi-bin/"
Refer to http://httpd.apache.org/docs/2.0/howto/cgi.html

---------------------------------------------------------------------
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


---------------------------------------------------------------------
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