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

Re: [cobalt-users] Shared CGI-BIN - solved



baltimoremd@xxxxxxxxxxxxxxx wrote:

> On Mon, 29 Jan 2001, Kul wrote:
>
> > In your **httpd.conf** file, add the following line, then create directory "cgi-pub" (use whatever you like) in the home site (could actually be any, but home is probably best).   Make sure it **IS** in the "web" directory or cgi-wrapper will go bananas and stop it working!  Ensure you create the "cgi-pub" directory NOT as root or you can't upload the scripts (as I did - Dohh) then ensure its chmod'ed correctly (see example below) (and its containing scripts) - I found the admin user the best one to use as the owner of the "cgi-pub" directory.
> >
> >     ScriptAlias /cgi-pub/ /home/sites/home/web/cgi-pub/
>
> Works like a charm on the RaQ4 ....
> used this kind of reference in the .shtml page
> <!--#exec cgi="/cgi-pub/redneck.pl"-->
>
> How someever...will the addition I made to the httpd.conf get overwritten
> by the everpowerfull Cobalt script that adds sites?
>
> If so, is there a way to have an include file?  I'd rather not mess with
> the cgi that creates that file.
>
> Oh, it's no big deal, but you can see it work at
> http://www.baltimorehon.com/shareme.shtml
>
> thom

Hi Thom,

On my raq3, the ScriptAlias does not get altered or deleted when I tinker (via GUI) with the sites.
I just tested it to be 100% sure, and added and then removed CGI access for one of my sites, the ScriptAlias was there throughout and at the end of the changes :-)
On a raq4, I would assume, but cant be 100% sure, try it, it shouldn't hurt as you havn't had time to get it into production yet !

Using an INCLUDE file would be possible in the httpd.conf, but I dont have too much experience with this.
My modifications are all done by a perl script I wrote, that adds and removes my personal/cutom settings without the risk of my terrible spelling getting in the way !! <g>

PS Glad to hear it works on a Raq4, thought it should as they are very similar it seems.
Hope this helps with your quest...

Regards
Kul