Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 8 of 8

This is a discussion on HTTPS not configured for /cgi-bin/ in the VPS & Dedicated forum
I noticed that cPanel/WHM does not configure HTTPS properly, as a result, the /cgi-bin/ path is not usable under HTTPS. For example, this works fine: ...

  1. #1
    Loyal Client thisisit3's Avatar
    Join Date
    Mar 2007
    Posts
    642

    HTTPS not configured for /cgi-bin/

    I noticed that cPanel/WHM does not configure HTTPS properly, as a result, the /cgi-bin/ path is not usable under HTTPS.

    For example, this works fine:
    https://www.domain.com/test.php

    But this does not:
    https://www.domain.com/cgi-bin/test.php

    The second case, will actualy try to execute: /usr/local/apache/cgi-bin/test.php

    You can verify that by looking at your /etc/httpd/logs/error_log file, you'll see the 404 error.

    I believe its missing the following line:
    ScriptAlias /cgi-bin/ /home/domain/public_html/cgi-bin/

    Anyone would like to verify this?

  2. #2
    JPC Dream Team JPC-Veena's Avatar
    Join Date
    Sep 2002
    Posts
    572
    No, that seems to be a misconfiguration in your apache config. For each domain's virtualhost entry in httpd.conf, there will be a scriptalias line present by default when you create the domain/subdomain via whm/cpanel.
    Please open a support ticket if it isn't already fixed.
    Veena K John
    Jaguar Technologies, LLC.

    Helpful Links
    Knowledge Base | Network Status | Current Specials

    Need a Manager?
    (pm) | (email) David, Customer Service Manager

  3. #3
    Loyal Client thisisit3's Avatar
    Join Date
    Mar 2007
    Posts
    642
    There is!!

    Its just that... its for the normal virtualhost entry, its not in the SSL entry!

    Can someone please look at their /etc/httpd/conf/httpd.conf and look for:

    <VirtualHost some.ip.address.here>
    ScriptAlias /cgi-bin/ /home/someuser/public_html/cgi-bin/

    and see if there is a ScriptAlias in here as well:

    <IfDefine SSL>
    <VirtualHost some.ip.address.here:443>

    since i've never changed my httpd.conf by hand, its all generated by WHM, so if there is a bug its in WHM.

  4. #4
    JPC Dream Team JPC-Veena's Avatar
    Join Date
    Sep 2002
    Posts
    572
    I just installed a cert on a client vps and I see the scriptalias under the 443 entry. However if you don;t believe me wait for someone else to verify.
    Veena K John
    Jaguar Technologies, LLC.

    Helpful Links
    Knowledge Base | Network Status | Current Specials

    Need a Manager?
    (pm) | (email) David, Customer Service Manager

  5. #5
    Loyal Client thisisit3's Avatar
    Join Date
    Mar 2007
    Posts
    642
    I did the same and there is no scriptalias for /cgi-bin/

    I just added them all by hand... lots of copy/paste/replace :P oh well...

  6. #6
    JPC Dream Team JPC-Veena's Avatar
    Join Date
    Sep 2002
    Posts
    572
    Make sure you are using the latest STABLE cpanel version, also open a support ticket if needed, we can fix the template cpanel uses.
    Veena K John
    Jaguar Technologies, LLC.

    Helpful Links
    Knowledge Base | Network Status | Current Specials

    Need a Manager?
    (pm) | (email) David, Customer Service Manager

  7. #7
    Loyal Client thisisit3's Avatar
    Join Date
    Mar 2007
    Posts
    642
    I'm already running the latest STABLE cpanel/whm version. I took a look by my self, the template files for virtualhosts are:

    /usr/local/cpanel/etc/httptemplates/apache1/default
    /usr/local/cpanel/etc/httptemplates/apache1/ssldefault

    Both of them, contain the following lines:

    Code:
    !scriptalias=1!
    ScriptAlias /cgi-bin/ %docroot%/cgi-bin/
    !scriptalias!
    so why the above works fine for "default" template but doesn't work for "ssldefault"? Obviously something has to do with the 'scriptalias' variable...

    PS:
    i didn't open a support ticket because i like to learn more details about cPanel/WHM. If i can't figure it out then i'll open a ticket.

  8. #8
    Loyal Client thisisit3's Avatar
    Join Date
    Mar 2007
    Posts
    642
    Apparently, there is a WHM option about ScriptAlias, under: Server Configuration -> Basic cPanel/WHM Setup -> CGI Script Alias (set to 'y' or 'n').

    Mine is set to 'y', so i'm not sure why its working for normal virtualhost entries but not for SSL entries.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •