Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How does cgi-sys work?

Discussion in 'General Discussion' started by isaac, Jun 12, 2005.

  1. isaac

    isaac Registered

    Joined:
    Oct 20, 2003
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    151
    I'd like a directory like cgi-sys except that it's password-protected - but I can't seem to create a NON-password-protected directory like that.

    First, I made a directory that appears to be identical in every respect
    Code:
    mkdir /usr/local/cpanel/user/ 
    chmod 755 /usr/local/cpanel/user/
    chown root.wheel /usr/local/cpanel/user
    cp /usr/local/cpanel/cgi-sys/* /usr/local/cpanel/user/
    chmod 755 /usr/local/cpanel/user/*
    chown root.wheel /usr/local/cpanel/user/*
    
    Then I added this line to httpd.conf
    Code:
    ScriptAlias /user/ /usr/local/cpanel/user/
    and I restarted Apache

    It looks to me like there is no difference at all between
    Code:
    http://domain.name/cgi-sys/hello_world.cgi 
    and
    Code:
    http://domain.name/user/hello_world.cgi
    but the cgi-sys URL works right, and the user URL gives a 500 error - and it does NOT appear in the error log.

    Even if you only have a partial answer to this one, I'd appreciate a pointer so that I could RTFM.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice