jay711
Oct 22 2002, 02:01 PM
I read thru the treads and found one tread saying that I have to place .cgi file under /cgi-bin. btw, I'm using PLESK.
I just install a message board ended with .cgi extension and the default is not under "/cgi-bin", so I need the web server to recognize the .cgi files under different directory. Is there a way to do this under PLESK?
thanks for the help.
afriend
Oct 22 2002, 09:30 PM
Edit the httpd.conf file (try to search for it - its location depends on which Plesk version you have) and remove the comment in front of the line for:
AddHandler cgi-script .cgi
Restart Apache. This will let a CGI script execute outside of the cgi-bin directory. It will still run under the cgi wrapper, so it's not unsafe.
Jonathan
Oct 23 2002, 03:57 AM
micxz
Oct 24 2002, 02:52 AM
I would create a file called "vhost.conf" and place it in the conf/ directory of the domain in qeustion:
AddHandler cgi-script .cgi
then restart apache, this way you won't open cgi's all the server world wide!!!!! could be a security risk!
Jonathan
Oct 24 2002, 05:11 AM
Plesk uses suexec so running cgi scripts from the httpdocs directory as well is no more a security risk than just allowing your clients to run cgi scripts from their cgi-bin directory.
micxz
Oct 24 2002, 01:47 PM
Your completely right jon, but this is better, than
"AddHandler cgi-script .cgi"
in the main httpd.conf wouldn't you say. At least this way youve narrowed it down to this one client, and you can monitor his perl scripting if you like.
Jonathan
Oct 24 2002, 04:58 PM
Yeah good point
I'm sure we will all have to track down some poorly written script some day!!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.