What's cgi-bin directory?

Discussion in 'Installation/Configuration' started by key, Nov 26, 2012.

  1. key

    key New Member

    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?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
     
  3. key

    key New Member

  4. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
     
  5. key

    key New Member

    Thank you very much

    Thank you very much.

    I'll run with this configuration.
     

Share This Page