Site maintenance: Tuesday 17 Nov, from 10:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Installing on a Linux/Unix Server / Can't log into admin using SSL in a subdomain in got an error when entering the URL

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

Started by icecold on 14 Jul 2012, 5:38 PM · Views: 1,929

Results 1 to 4 of 4
14 Jul 2012, 5:38 PM
#1
icecold avatar

icecold

Zen Follower

Join Date:
Jul 2008
Posts:
360
Plugin Contributions:
0

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 http://itandelectronics.theoutletseason.com works fine but if I use https:// it just goes to the main domain that is ```
https://theoutletseason.com


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.
14 Jul 2012, 7:32 PM
#2
icecold avatar

icecold

Zen Follower

Join Date:
Jul 2008
Posts:
360
Plugin Contributions:
0

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

My Admin configure.php file

 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)
25 Jul 2012, 3:03 PM
#4
maac2 avatar

maac2

New Zenner

Join Date:
Jan 2011
Posts:
70
Plugin Contributions:
0

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

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