Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Dec 2007
    Posts
    7
    Plugin Contributions
    0

    Default SSL on separate subdomain?

    I've been reading through the forums for the past couple days trying to find this answer myself (if it exists), but haven't found it, so I apologize if I just overlooked the answer.

    I have a subdomain running my Zencart at http://store.domain.com. I have an SSL cert installed at https://secure.domain.com.

    How can I use the SSL cert at the secure.domain.com subdomain for the checkout procedure for my store.domain.com?

    Thanks,

    Jon

  2. #2
    Join Date
    Dec 2007
    Posts
    7
    Plugin Contributions
    0

    Default Re: SSL on separate subdomain?

    Wouldn't you know, not 15 minutes after posting that message, I found the answer.

    Thanks for looking. :-)

  3. #3
    Join Date
    Jun 2008
    Posts
    1
    Plugin Contributions
    0

    Default Re: SSL on separate subdomain?

    Quote Originally Posted by mainestratman View Post
    Wouldn't you know, not 15 minutes after posting that message, I found the answer.

    Thanks for looking. :-)
    I am still looking. Do you have a link to the thread with the answer?

    I have the same situation, SSL is installed for https://secure.domain.com and non SSL is http://store.domain.com and they are in different folders on the same host.

    SSL path: /public_html/secure
    Non SSL path: /public_html/store

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: SSL on separate subdomain?

    Your easiest solution will be to get your host to "link" them.
    Zen Cart doesn't need to use separate folders to protect secure content.

    If you leave it split into separate folders, you'll have to maintain 2 entire duplicate folder structures manually.

    If you get your host to link them, your life will be much easier.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Apr 2011
    Posts
    1
    Plugin Contributions
    0

    help question Re: SSL on separate subdomain?

    Please help someone with the ZenCart configuration, if possible.

    I want to help some guy with the ZenCart, he has a ZenCart installed in "domain.com" but he has a Dedicated SSL certificate for "secure.domain.com" only. He has 2 ZenCart apps, in domain.com and subdomain secure.domain.com installed, they are pointed to the same database.

    domain.com - has path - /home/user/public_html/
    secure.domain.com - has path - /home/user/public_html/secure

    The problem is that session is being lost at checkout after redirection to https://secure.domain.com

    I agree with the DrByte's answer in this topic, but the goal is to restore functionality with the 2 ZenCarts pointed to the same database so when customer at domain.com checkout is redirected to https://secure.domain.com without session loss.

    public_html/includes/configure.php has

    define('HTTP_SERVER', 'http://domain.com');
    define('HTTPS_SERVER', 'https://secure.domain.com');
    define('ENABLE_SSL', 'true');
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_CATALOG', '/');
    define('DIR_FS_CATALOG', '/home/user/public_html/');

    public_html/admin/includes/configure.php has

    define('HTTP_SERVER', 'http://domain.com/');
    define('HTTPS_SERVER', 'https://secure.domain.com/');
    define('HTTP_CATALOG_SERVER', 'http://domain.com/');
    define('HTTPS_CATALOG_SERVER', 'https://secure.domain.com/');
    define('ENABLE_SSL_CATALOG', 'true');
    define('ENABLE_SSL_ADMIN', 'false');
    define('DIR_FS_CATALOG', '/home/user/public_html/');

    public_html/secure/includes/configure.php has

    define('HTTP_SERVER', 'http://domain.com');
    define('HTTPS_SERVER', 'https://secure.domain.com');
    define('ENABLE_SSL', 'true');
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_CATALOG', '/');
    define('DIR_FS_CATALOG', '/home/user/public_html/');

    public_html/secure/admin/includes/configure.php

    define('HTTP_SERVER', 'http://domain.com/');
    define('HTTPS_SERVER', 'https://secure.domain.com/');
    define('HTTP_CATALOG_SERVER', 'http://domain.com/');
    define('HTTPS_CATALOG_SERVER', 'https://secure.domain.com/');
    define('ENABLE_SSL_CATALOG', 'true');
    define('ENABLE_SSL_ADMIN', 'false');
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_CATALOG', '/');
    define('DIR_FS_ADMIN', '/home/user/public_html/secure/admin/
    define('DIR_FS_CATALOG', '/home/user/public_html/secure/');

    Sessions:

    Cookie Domain - True
    Force Cookie Use - False
    Check SSL Session ID - False
    Check User Agent - False
    Check IP Address - False
    Prevent Spider Sessions - True
    Recreate Session - False
    IP to Host Conversion Status - true

    Sessions store is database and I think it is ok. It would be much appreciated if someone can advise. Thank you in advance!

  6. #6
    Join Date
    Sep 2005
    Location
    Ocala, FL
    Posts
    528
    Plugin Contributions
    0

    Default Re: SSL on separate subdomain?

    Quote Originally Posted by DrByte View Post
    Your easiest solution will be to get your host to "link" them.
    Zen Cart doesn't need to use separate folders to protect secure content.

    If you leave it split into separate folders, you'll have to maintain 2 entire duplicate folder structures manually.

    If you get your host to link them, your life will be much easier.
    Hi,

    I too am having a similar issue. I have a main domain at www.marketsofmarion.com
    (running no zen store) but I am running a zen cart store at one of the sub domains www.cleanusedgolfballs.com and would like to add more subdomains zen stores too.

    Do you feel that other domains that redirect with masking to my sub domain store will effect this? I would like my redirected masked domains like to use www.momscleangreen.com

    It seems that I get a cookie usage page error on my laptop but not on my other pcs when I click login.
    I did set Force Cookies to True in the admin configuration sessions area.
    Why is this error still appearing? Why my laptop and not other devieces.

    Your help is appreciated.

 

 

Similar Threads

  1. v151 Login Issues With Subdomain after installing SSL
    By ckelley in forum Basic Configuration
    Replies: 9
    Last Post: 1 May 2013, 02:55 AM
  2. Can I install and configure SSL without using a subdomain?
    By Pithecanthropus in forum General Questions
    Replies: 2
    Last Post: 21 Jul 2011, 07:27 AM
  3. Shared SSL and Subdomain
    By TecBrat in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 12 Nov 2008, 08:53 PM
  4. Subdomain, SSL Issue- Host not much help. :(
    By Jolaedana in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 4 Jun 2007, 10:49 PM
  5. SSL Certificate on Subdomain
    By sholly in forum General Questions
    Replies: 3
    Last Post: 24 Sep 2006, 10:42 AM

Posting Permissions

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