aleavens
02-07-2002, 03:54 PM
on an Ensim system how do I set up the CGI-BIN so that the clients do not have access to the cgi-bin to add their own scripts. Also how do I add the scripts so that they are avalible to all users?
![]() | View Full Version : CGI-BIN Question aleavens 02-07-2002, 03:54 PM on an Ensim system how do I set up the CGI-BIN so that the clients do not have access to the cgi-bin to add their own scripts. Also how do I add the scripts so that they are avalible to all users? Tim Greer 02-09-2002, 05:36 AM Hi, I don't know about Ensim program so much, but the cgi-bin directory, is just a directory. I'm not sure if you want to use that as a script alias, or if you'd rather use a different directory name, but a script alias is a script alias, so... Anyway, if you want to control what goes into a user's script aliased directory, you just set a global "ScriptAlias" directive to say that /cgi-bin/ points to /your/controlled/path/cgi-bin/ that's not in their account directory. You will need to make sure that the web server executes CGI scripts as the web server's global user, and for this to be effective, you'll want to disable global CGI file extensions and force the user's to have to put their CGI scripts in to a script aliased directory (which, again, you'll have control over, since you control what goes into it). You also might want to make it have a /global/cgi-bin/username/ directory that only you control and have each virtual host have it put /cgi-bin/ for their domain, to point to their username's sub directory within the main cgi-bin directory path -- so it's individual to them, of course. There's other solutions and means to accomplish this or similar things and I'm not sure exactly what you want, why or how, but this is a general idea. |