Re: [Boa-devel] Boa-CGI config
Brought to you by:
jnelson
From: acrux <acr...@li...> - 2006-06-20 09:12:23
|
On Mon, 19 Jun 2006 12:09:18 -0700 boa...@li... wrote: > Date: Mon, 19 Jun 2006 12:37:56 +0530 > From: <jay...@wi...> > Subject: [Boa-devel] Boa-CGI config > To: <boa...@li...> > Message-ID: > <DAC44517F1877045935359C34678492401F32ABB@CHN-SNR-MBX01.wipro.com> > Content-Type: text/plain; charset="us-ascii" > > Hi People, > > I am new joinee to this group. > > I have a query regarding the CGI file loading on Boa. > > Currently I am using boa version 0.94 > > CGI files are not properly loaded on boa (in the sense, the cgi page > is loaded but Submit actions are not performed by Boa). > hi, i'm using boa 0.94.14rc21 here and CGI scripts (only bash) work like a charme. This is from my /etc/boac.conf ---- # User: The name or UID the server should run as. # Group: The group name or GID the server should run as. User nobody Group nobody # CGIumask 027 (no mask for user, read-only for group, and nothing for # user) CGIumask 027 # The CGIumask is set immediately before execution of the CGI. # VerboseCGILogs: this is just a logical switch. # It simply notes the start and stop times of cgis in the error log # Comment out to disable. VerboseCGILogs # DefaultType: MIME type used if the file extension is unknown, or there # is no file extension. DefaultType text/plain # CGIPath: The value of the $PATH environment variable given to CGI # progs. CGIPath /bin:/usr/bin:/usr/local/bin # AddType: adds types without editing mime.types # Example: AddType type extension [extension ...] # Uncomment the next line if you want .cgi files to execute from # anywhere AddType application/x-httpd-cgi cgi AddType application/x-httpd-cgi pl AddType application/x-httpd-cgi php AddType application/x-httpd-cgi sh # ScriptAlias: Maps a virtual path to a directory for serving scripts # Example: ScriptAlias /htbin/ /www/htbin/ ScriptAlias /cgi-bin/ YOUR_DOCUMENTROOT/cgi-bin/ ----- and this is an example bash script in CGI user@localhost:~$ cat cgi-bin/uptime.cgi #!/bin/bash echo Content-type: text/html echo echo "<html><body><pre>" #echo "uptime" uptime echo "</body></html>" EOF greetz and good luck! Acrux -- vesuvio | LinuxMachine 156116 powered by GNU/Linux CRUX # GnuPG/PGP Key_ID: 0x378EECB8 |