PDA

View Full Version : cgi-bin?


hearts
02-04-1999, 07:24 PM
i have a question.

what makes a cgi-bin a cgi-bin?

I do not mean to sound stupid.. but this question did pop up in my head.. I remember deb saying on another ocassion that if you wanted to put cgi files in a directory that was not your "cgi-bin" you could write an .htaccess file.

so.. i really got to know what the difference is vs any other directory.

thanks ..

-----

hearts

inquiring minds gotta know http://www.aota.net/ubb/wink.gif

meikel
02-04-1999, 08:05 PM
Hi,

at FQ the server is configured to treat the directory http://www.yourdomain.com/cgi-bin a bit different.
a) The directory is not located under your standard www branch (so it's not so easy to hack)
b) Every file in there is assume to be a script ready to run

Apache Server allows configuration changes for a directory by creating a .htaccess file. In this file, you can tell the Apache Server to treat e.g. *.cgi files as scripts ready to run. That could make any directory work the same as cgi-bin. I'm sure that you can also redirect it to somewhere outside the www branch.

The main difference is that all this is preconfigured for cgi-bin.

Greetings from Bonn, Germany
[nbsp][nbsp]Meikel Weber
http://www.meikel.com

hearts
02-04-1999, 09:33 PM
so.. for a cgi-bin to be a cgi-bin the server people.. techs.. whomever.. have to set permissions for this directory to work?

*no further questions, at this time, your honor*

----

hearts

--- adjourning for a temporary recess --