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 do I redirect to https

Discussion in 'General Discussion' started by marfa, Jul 24, 2004.

  1. marfa

    marfa Member

    Joined:
    Jul 23, 2004
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    151
    I need to redirect my shopping cart to a secure site.
    In Ensim I had an httpsdocs directory and I used https://mydomain.com/~username/shopping.htm for redirection. But now that I have moved to cpanel, I don't see an https directory and I don't know how to redirect the shopping cart.
    I have looked for this information, but I guess it must be so basic that it doesn't show anywhere.

    Can someone please help me with this isssue?
     
  2. skipjack

    skipjack Member

    Joined:
    Dec 4, 2003
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    151
    Hi,

    If there is a ssl cert installed for the hostname of the server that cpanel is running on then you should be able to use https://hostname.mydomain.com/~username/shopping.htm
    There is not a different folder just the public_html one so everything in there can be called over ssl.

    Tony
     
  3. marfa

    marfa Member

    Joined:
    Jul 23, 2004
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    151
    Hi and thanks Tony

    This is what I get when use https://hostname.mydomain.com/~username/shopping.htm

    Warning: Unknown(): open_basedir restriction in effect. File(/home/username/public_html/mystore/modules.php) is not within the allowed path(s): (/home/pb-enter:/usr/lib/php:/usr/local/lib/php:/tmp) in Unknown on line 0

    Warning: Unknown(/home/username/public_html/mystore/modules.php): failed to open stream: Operation not permitted in Unknown on line 0

    Warning: (null)(): Failed opening '/home/username/public_html/mystore/modules.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in Unknown on line 0
     
  4. bamasbest

    bamasbest Well-Known Member

    Joined:
    Jan 10, 2004
    Messages:
    531
    Likes Received:
    0
    Trophy Points:
    166
    Looks like you need to modify your config files to point to the approriate directories.
     
  5. greengiant

    greengiant Well-Known Member

    Joined:
    Aug 31, 2003
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    156
    If you are using open basepath restrictions and want to still be able to aceess another users site using the http://www.yourdomain.com/~username method, you need to add /home as a allowed basedir in your httpd.

    Find this line in your httpd.conf for your SSL domain.

    Code:
    php_admin_value open_basedir "/home/username/:/usr/lib/php:/usr/local/lib/php:/tmp"
    chnage it to

    Code:
    php_admin_value open_basedir "/home:/home/username/:/usr/lib/php:/usr/local/lib/php:/tmp"
     
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