HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   What's cgi-bin directory? (http://www.howtoforge.com/forums/showthread.php?t=59698)

key 26th November 2012 08:25

What's cgi-bin directory?
 
In ispconfig manual, I can execute cgi scripts inside of cgi-bin directory.

But, I can execute cgi outside of it.

And, I place test.cgi inside of it and visit http://example.com/cgi-bin/test.cgi.

Apache tell me 404 not found.

What's difference between cgi-bin and web directory?

till 26th November 2012 09:30

The cgi-bin directory is for executing cgi scripts. Normally you can not execute cgi scripts in the web folder, s it might be that you reconfigured your server to do that. The cgi-bin folder is a alias for www.yourdomain.tld/cgi-bin/ which get added when you enable cgi function in the web site settings in ispconfig.

key 26th November 2012 09:48

Thanks
 
Thanks

But, I didn't reconfigure.

I set up servers with this manual.

http://www.howtoforge.com/perfect-se...ot-ispconfig-3

My configuration is insecure, isn't it?

till 26th November 2012 10:12

Quote:

My configuration is insecure, isn't it?
Thats not a security problem. For a secure website setup it is important that you always enable the suexec checkbox in the website settings so that all cgi processes (inside and outside of the cgi-bin directory) are run as web user and client group of this website.

key 26th November 2012 10:16

Thank you very much
 
Quote:

Originally Posted by till (Post 288731)
Thats not a security problem. For a secure website setup it is important that you always enable the suexec checkbox in the website settings so that all cgi processes (inside and outside of the cgi-bin directory) are run as web user and client group of this website.

Thank you very much.

I'll run with this configuration.


All times are GMT +2. The time now is 02:55.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.