Re: [cgiwrap-users] Looking for examples for use on Virtual Server
Brought to you by:
nneul
From: Kevin Y. <ke...@in...> - 2000-11-06 04:54:55
|
Ken, we use the following in Apache such that all CGIs with a suffix of "cgi" are executed using CGIWrap: AddHandler cgiwrapper .cgi Action cgiwrapper /cgi-bin/cgiwrap When used in conjunction with the mod_vhost_alias module of the latest Apache version, you can use this to do virtual CGI execution using CGIWrap. It's quite convenient. On Sun, 5 Nov 2000, Ralph Huntington wrote: > Here's how I do it. I know there are other ways. I don't run a common cgi > dir like you'r asking, but I do virtual hosts and they share one centrally > located copy of cgiwrap. > > I put this in each <VirtualHost> directive > > ScriptAlias /cgi-bin/ /apache/cgi-bin/cgiwrap/$username/ > > Substitute the actual username, of course, for $username. You tell cgiwrap > when you compile it where the user cgi-dir is located relative to doc root > > Scripts are called just like one normally would, e.g., > > <form action="/cgi-bin/somescript.cgi"> > > On Sun, 5 Nov 2000, Ken wrote: > > > I'm new to the list. I had a look through the archives but did not find > > what I am looking for: > > > > Can anyone please send info or direct me to some URL's that go into detail > > on usage of CGIwrap in a virtual server type environment. For example I > > would like to allow my virtual hosts to have their own CGI-BIN, but of > > course I want to protect the server. I would also like to have a global > > CGI-BIN with common scripts that all virtual hosts could make use of. Do I > > need to install a separate version of CGIwrap for each virtual host? > > > > Any useful info or links would be greatly appreciated. |