Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Jul 2008
    Posts
    241
    Plugin Contributions
    0

    Default Can't log into admin using SSL in a subdomain in got an error when entering the URL

    This is the error I got.

    Not Found

    The requested URL /AdminNW/login.php was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


    Please note for testing purposes, I renamed the admin directory to something else that won't be the final name I will use when live.

    The subdomain
    Code:
    http://itandelectronics.theoutletseason.com
    works fine but if I use https:// it just goes to the main domain that is
    Code:
    https://theoutletseason.com
    instead.

    I know this is some type of misconfiguration, but I need some ideas to find out what can I change or what I have to tell my host provider, to fix this problem.

    Please note this is a FRESH install, so it's a vanilla ZC v1.5, I got no problems during the installation. This is the first time I try a subdomain, I already have a working 1.3.8a store under my signature. This will be another ZC store under a subdomain.

  2. #2
    Join Date
    Jul 2008
    Posts
    241
    Plugin Contributions
    0

    Default Re: Can't log into admin using SSL in a subdomain in got an error when entering the U

    My Admin configure.php file
    Code:
     define('HTTP_SERVER', 'https://itandelectronics.theoutletseason.com');
      define('HTTPS_SERVER', 'https://itandelectronics.theoutletseason.com');
      define('HTTP_CATALOG_SERVER', 'http://itandelectronics.theoutletseason.com');
      define('HTTPS_CATALOG_SERVER', 'https://itandelectronics.theoutletseason.com');
    
      // secure webserver for admin?  Valid choices are 'true' or 'false' (including quotes).
      define('ENABLE_SSL_ADMIN', 'true');
    
      // secure webserver for storefront?  Valid choices are 'true' or 'false' (including quotes).
      define('ENABLE_SSL_CATALOG', '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)
      $t1 = parse_url(HTTP_SERVER);$p1 = $t1['path'];$t2 = parse_url(HTTPS_SERVER);$p2 = $t2['path'];
    
      define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p1) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
      define('DIR_WS_CATALOG', '/');
      define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p2) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
      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/');
    
    // * DIR_FS_* = Filesystem directories (local/physical)

  3. #3
    Join Date
    Jul 2008
    Posts
    241
    Plugin Contributions
    0

    Default Re: Can't log into admin using SSL in a subdomain in got an error when entering the U

    Please note when I enter
    Code:
    https://itandelectronics.theoutletseason.com
    it opens
    Code:
    https://www.theoutletseason.com
    instead, which is the main domain. CP shows no Redirection in Place.

  4. #4
    Join Date
    Jan 2011
    Posts
    61
    Plugin Contributions
    0

    Default Re: Can't log into admin using SSL in a subdomain in got an error when entering the U

    Did you buy the SSL cert for the subdomain specifically (or a wildcard cert) or was it for theoutletseason.com?

 

 

Similar Threads

  1. 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
  2. Added SSL, Can't log into Admin
    By scosio in forum General Questions
    Replies: 1
    Last Post: 30 Jun 2010, 10:53 AM
  3. error when trying to log into admin after changing admin name
    By pcrcanada in forum General Questions
    Replies: 8
    Last Post: 29 Jun 2009, 08:51 PM
  4. Replies: 3
    Last Post: 4 Jun 2009, 06:40 PM
  5. 500 Internal Server Error when trying to log into admin
    By kbalona in forum General Questions
    Replies: 3
    Last Post: 3 May 2007, 11:29 PM

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
  •