The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

about CGI http.conf

Discussion in 'General Discussion' started by typer, Apr 29, 2003.

  1. typer

    typer Active Member

    Joined:
    Mar 24, 2003
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    Hi All;

    I have some trouble on giving particular directory to have CGI
    or Include access.

    Here is my httpd.conf:

    <VirtualHost xxx.xxx.xxx.xxx>
    ServerAlias www.domain.com domain.com
    ServerAdmin webmaster@domain.com
    DocumentRoot /home/domain/public_html/php
    BytesLog domlogs/domain.com-bytes_log
    User domain
    Group domain
    ServerName www.domain.com
    CustomLog domlogs/domain.com combined
    Options -ExecCGI -Includes
    ScriptAlias /cgi-bin/ /home/domain /www/php/domain/public_html/cgi-bin/
    </VirtualHost>

    The outcome to view that cgi is permission denial.
    But check the error.log and it still tells me that Options CGI is off.

    How can that be??

    If I allow /home to have CGIExec, of coz; it will work but i think it is insecure...

    Any expert help me here?

    Janice ^^
     
  2. d4rkl0rd

    d4rkl0rd Active Member

    Joined:
    Feb 23, 2004
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    India
  3. BrightAdmin

    BrightAdmin Well-Known Member

    Joined:
    Feb 29, 2004
    Messages:
    204
    Likes Received:
    0
    Trophy Points:
    16
    Hi Janice,

    You can make CGI option on use the following directive:
    Options +ExecCGI

    Regarding security you can use the Directory option which is used to enclose a group of directives that will apply only to the named directory and sub-directories of that directory.

    <Directory "/home/*/public_html/cgi-bin">
    AllowOverride None
    Options ExecCGI
    Order allow,deny
    Allow from all
    </Directory>

    For more details on Options and Directory directives refer:
    http://httpd.apache.org/docs-2.0/mod/core.html#options
    http://httpd.apache.org/docs-2.0/mod/core.html#directory

    Regards, :)
     
Loading...

Share This Page