Results 1 to 10 of 12

Hybrid View

  1. #1
    Join Date
    Feb 2011
    Posts
    15
    Plugin Contributions
    0

    Default Re: Changing secure subdomain

    Thanks for that. The site works as it is for now. Its just a bit of a pain copying files between the 2 folders. Would it be better for me to get my SSL cert changed to just the root domain?

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

    Default Re: Changing secure subdomain

    Quote Originally Posted by Kromak View Post
    Would it be better for me to get my SSL cert changed to just the root domain?
    I'd definitely be inclined to make the change. If you can't alter the existing certificate for free, then at least make the change when you next renew it.
    .

    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.

  3. #3
    Join Date
    Feb 2011
    Posts
    15
    Plugin Contributions
    0

    Default Re: Changing secure subdomain

    I've decided to live with it as it currently is. I don't mind editing both folders when needed. However I am getting a curious problem with my image uploads. Because my admin is on the /secure folder, images get uploaded there and do not show up on the unprotected site.

    Can this be fixed with the configure files? Currently they are set -

    /webshop/admin/includes/configure.php
    -------------------------------------
    Code:
    define('HTTP_SERVER', 'http://mywebsite.com');
      define('HTTPS_SERVER', 'https://secure.mywebsite.com');
      define('HTTP_CATALOG_SERVER', 'http://mywebsite.com');
      define('HTTPS_CATALOG_SERVER', 'https://secure.mywebsite.com');
    
      // Use secure webserver for catalog module and/or admin areas?
      define('ENABLE_SSL_CATALOG', 'true');
      define('ENABLE_SSL_ADMIN', 'true');
    
    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
      // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
      define('DIR_WS_ADMIN', '/webshop/admin/');
      define('DIR_WS_CATALOG', '/webshop/');
      define('DIR_WS_HTTPS_ADMIN', '/admin/');
      define('DIR_WS_HTTPS_CATALOG', '/');
    
      define('DIR_WS_IMAGES', 'images/');
      define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
      define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
      define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
      define('DIR_WS_INCLUDES', 'includes/');
      define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
      define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
      define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
      define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
      define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
      define('DIR_WS_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');
    ---------------------------------------------------------

    /secure/admin/includes/configure.php
    --------------------------------------------------------
    Code:
    define('HTTP_SERVER', 'https://secure.mywebsite.com');
      define('HTTPS_SERVER', 'https://secure.mywebsite.com');
      define('HTTP_CATALOG_SERVER', 'http://www.mywebsite.com');
      define('HTTPS_CATALOG_SERVER', 'https://secure.mywebsite.com');
    
      // Use secure webserver for catalog module and/or admin areas?
      define('ENABLE_SSL_CATALOG', 'true');
      define('ENABLE_SSL_ADMIN', 'true');
    
    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
      // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
      define('DIR_WS_ADMIN', '/admin/');
      define('DIR_WS_CATALOG', '/');
      define('DIR_WS_HTTPS_ADMIN', '/admin/');
      define('DIR_WS_HTTPS_CATALOG', '/');
    
      define('DIR_WS_IMAGES', 'images/');
      define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
      define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
      define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
      define('DIR_WS_INCLUDES', 'includes/');
      define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
      define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
      define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
      define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
      define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
      define('DIR_WS_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');
    -----------------------------------------------------

    Any help is appreciated.

    Thanks

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

    Default Re: Changing secure subdomain

    Quote Originally Posted by Kromak View Post
    I've decided to live with it as it currently is. I don't mind editing both folders when needed. However I am getting a curious problem with my image uploads. Because my admin is on the /secure folder, images get uploaded there and do not show up on the unprotected site.
    That's the downside of having two disconnected folders for SSL and NONSSL: you need to manually sync both sets of files, usually by uploading any changes/additions to both locations via FTP.
    Quote Originally Posted by Kromak View Post
    Can this be fixed with the configure files?
    You might mitigate some of it by making sure DIR_FS_CATALOG in your admin configure.php matches (ie: copy it from) DIR_FS_CATALOG in your non-admin configure.php.

    If you were to set up the symlink thing I mentioned earlier, you wouldn't have this problem.
    .

    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
    Feb 2011
    Posts
    15
    Plugin Contributions
    0

    Default Re: Changing secure subdomain

    I had a look at symlinks but it either it didn't work, or I didn't do it properly ;)

    Anyway, my SSL provider says they can change my Cert. Will it be as simple as changing the directories in the configure.php files once it changes?

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

    Default Re: Changing secure subdomain

    Generally speaking, yes.
    .

    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.

 

 

Similar Threads

  1. v155 Changing Subdomain URL
    By Dream9Studios in forum General Questions
    Replies: 4
    Last Post: 17 Apr 2016, 01:07 AM
  2. v150 changing admin to secure / ssl
    By delia in forum Basic Configuration
    Replies: 7
    Last Post: 22 Jun 2012, 02:11 PM
  3. Changing my Subdomain but not moving Zen Cart store
    By dni in forum General Questions
    Replies: 3
    Last Post: 2 Mar 2011, 06:11 PM
  4. Replies: 2
    Last Post: 17 Aug 2007, 05:26 PM

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