Jump to content

Archived

This topic is now archived and is closed to further replies.

Stollyman

Shared SSL files not found

Recommended Posts

Host Heart Internet

 

osC 2.3.3

 

Server Apache

 

Hi,

 

I've just made my first install of osC and am having a problem with SSL in that when I click on nay of the secure

 

areas of osC I get the following error

 

 

"Not Found

 

The requested URL /mydomain.co.uk/dev/whatever.php was not found on this server.

Apache/2 Server at web14.secure-secure.co.uk Port 443"

 

If I then try to force the issue by typing in

 

 

"[url="https://mydomain.co.uk/dev/checkout_shipping.php?osCsid=**********************"]https://mydomain.co.uk/dev/checkout_shipping.php?osCsid=**********************"[/url]

 

I get a certificate error "The server's certificate did not match its hostname. Accept?

 

Server Name mydomain.co.uk

 

Certificate name " *.secure-secure.co.uk;secure-secure.co.uk;*.secure-secure.co.uk"

 

 

If I choose to accept it anyway I get not found on server

 

The instructions from Heart were :-

 

How do I Access Secure Server Access

 

We have mapped the URL:-

 

https://web14.secure-secure.co.uk/mydomain.co.uk/ to http://www.mydomain.co.uk

 

Please note the s in https.

 

This means that any files that are hosted on your main website can also be loaded securely, just link to this URL

 

when you need to securely load a page.

 

 

My includes/config.php is as follows:-

 

define('HTTP_SERVER', 'http://mydomain.co.uk');
define('HTTPS_SERVER', 'https://web14.secure-secure.co.uk/mydomain.co.uk');
define('ENABLE_SSL', true);
define('HTTP_COOKIE_DOMAIN', 'www.mydomain.co.uk');
define('HTTPS_COOKIE_DOMAIN', 'web14.secure-secure.co.uk/mydomain.co.uk');
define('HTTP_COOKIE_PATH', '/dev/');
define('HTTPS_COOKIE_PATH', '/dev/');
define('DIR_WS_HTTP_CATALOG', '/dev/');
define('DIR_WS_HTTPS_CATALOG', '/dev/');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_INCLUDES', 'includes/');
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_DOWNLOAD_PUBLIC', 'pub/');
define('DIR_FS_CATALOG', '/home/sites/mydomain.co.uk/public_html/dev/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'web14-a-shopp-b');
define('DB_SERVER_PASSWORD', '3UJdn6/h3');
define('DB_DATABASE', 'web14-a-shopp-b');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'mysql');
define('CFG_TIME_ZONE', 'Europe/London');
?>

 

My admin/includes/conig.php is

 

<?php
define('HTTP_SERVER', 'http://www.mydomain.co.uk');
define('HTTP_CATALOG_SERVER', 'http://www.mydomain.co.uk');
define('HTTPS_CATALOG_SERVER', 'https://web14.secure-secure.co.uk/mydomain.co.uk');
define('ENABLE_SSL_CATALOG', 'true');
define('DIR_FS_DOCUMENT_ROOT', '/home/sites/mydomain.co.uk/public_html/dev/');
define('DIR_WS_ADMIN', '/dev/admin/');
define('DIR_FS_ADMIN', '/home/sites/mydomain.co.uk/public_html/dev/admin/');
define('DIR_WS_CATALOG', '/dev/');
define('DIR_FS_CATALOG', '/home/sites/mydomain.co.uk/public_html/dev/');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
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', DIR_WS_CATALOG . 'includes/languages/');
define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'web14-a-shopp-b');
define('DB_SERVER_PASSWORD', '3UJdn6/h3');
define('DB_DATABASE', 'web14-a-shopp-b');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'mysql');
define('CFG_TIME_ZONE', 'Europe/London');
?>

 

Part of includes/application.php (I've tried them all - no change

 

// set the type of request (secure or not)
$request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL';
// $request_type = (getenv('SERVER_PORT') == '443') ? 'SSL' : 'NONSSL';
// $request_type = (getenv('HTTPS') == '1') ? 'SSL' : 'NONSSL';
// $request_type = ($_SERVER['HTTP_HOST'] == 'mydomain.co.uk') ? 'SSL' : 'NONSSL';
// $request_type = (getenv('SERVER_PORT') == '443') ? 'SSL' : 'NONSSL';

 

 

Output from cfgchk.php

 

Version 1.2

File Permissions: 0644

Found HTTPS_SERVER:

define('HTTPS_SERVER', 'https://web14.secure-secure.co.uk/mydomain.co.uk');

HTTPS URL passed check!

Found ENABLE_SSL.

define('ENABLE_SSL', true);

SSL enable passed check!

Found HTTPS_COOKIE_DOMAIN:

define('HTTPS_COOKIE_DOMAIN', 'web14.secure-secure.co.uk/mydomain.co.uk');

HTTPS_COOKIE_DOMAIN line parsed!



Parsing application_top.php for SSL detection key...

Found SSL detection key:

$request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL';



Done

 

 

Output from myenv,php

 

myenv.php Version 1.2

NONSSL Variables

HTTP HOST: []

Server Port: [80]

SSL Status: [undefined!]

Fowarded Server: [undefined!]

Fowarded Host: [undefined!]

Fowarded By: [undefined!]

$_SERVER['HTTPS']: [undefined!]

Load: 1

SSL popup

Not Found

The requested URL /mydomain.co.uk/dev/myenv.php was not found on this server.
Apache/2 Server at web14.secure-secure.co.uk Port 443

 

 

Can't think what else to add, it's big enough already, but any help would be greatly appreciated as I'm tearing my

hair out with this. I've already worked my way through Germ's advice in the 21 page thread I found but it still

doesn't work.

Share this post


Link to post
Share on other sites

Your SSL certificate is issued for either web14.secure-secure.co.uk or *.secure-secure.co.uk (wildcard subdomain)? Any use of SSL/https must then start with https://web14.secure-secure.co.uk. It appears that you are trying to use it as https://mydomain.co.uk,'>https://mydomain.co.uk, which should work only if the SSL certificate was issued for mydomain.co.uk (not www.mydomain.co.uk).

 

When your SSL installer says

do they actually mean that https://mydomain.co.uk should be accepted? If so, it sounds like something didn't get configured right. Have you tried https://www.mydomain.co.uk? Maybe the www. is required.

Share this post


Link to post
Share on other sites

Host Heart Internet

 

osC 2.3.3

 

Server Apache

 

Hi,

 

I've just made my first install of osC and am having a problem with SSL in that when I click on nay of the secure

 

areas of osC I get the following error

 

 

"Not Found

 

The requested URL /mydomain.co.uk/dev/whatever.php was not found on this server.

Apache/2 Server at web14.secure-secure.co.uk Port 443"

 

If I then try to force the issue by typing in

 

 

"[url="https://mydomain.co.uk/dev/checkout_shipping.php?osCsid=**********************"]https://mydomain.co.uk/dev/checkout_shipping.php?osCsid=**********************"[/url]

 

I get a certificate error "The server's certificate did not match its hostname. Accept?

 

Server Name mydomain.co.uk

 

Certificate name " *.secure-secure.co.uk;secure-secure.co.uk;*.secure-secure.co.uk"

 

 

If I choose to accept it anyway I get not found on server

 

The instructions from Heart were :-

 

How do I Access Secure Server Access

 

We have mapped the URL:-

 

https://web14.secure-secure.co.uk/mydomain.co.uk/ to http://www.mydomain.co.uk

 

Please note the s in https.

 

This means that any files that are hosted on your main website can also be loaded securely, just link to this URL

 

when you need to securely load a page.

 

 

My includes/config.php is as follows:-

 

define('HTTP_SERVER', 'http://mydomain.co.uk');
define('HTTPS_SERVER', 'https://web14.secure-secure.co.uk/mydomain.co.uk');
define('ENABLE_SSL', true);
define('HTTP_COOKIE_DOMAIN', 'www.mydomain.co.uk');
define('HTTPS_COOKIE_DOMAIN', 'web14.secure-secure.co.uk/mydomain.co.uk');
define('HTTP_COOKIE_PATH', '/dev/');
define('HTTPS_COOKIE_PATH', '/dev/');
define('DIR_WS_HTTP_CATALOG', '/dev/');
define('DIR_WS_HTTPS_CATALOG', '/dev/');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_INCLUDES', 'includes/');
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_DOWNLOAD_PUBLIC', 'pub/');
define('DIR_FS_CATALOG', '/home/sites/mydomain.co.uk/public_html/dev/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'web14-a-shopp-b');
define('DB_SERVER_PASSWORD', '3UJdn6/h3');
define('DB_DATABASE', 'web14-a-shopp-b');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'mysql');
define('CFG_TIME_ZONE', 'Europe/London');
?>

 

My admin/includes/conig.php is

 

<?php
define('HTTP_SERVER', 'http://www.mydomain.co.uk');
define('HTTP_CATALOG_SERVER', 'http://www.mydomain.co.uk');
define('HTTPS_CATALOG_SERVER', 'https://web14.secure-secure.co.uk/mydomain.co.uk');
define('ENABLE_SSL_CATALOG', 'true');
define('DIR_FS_DOCUMENT_ROOT', '/home/sites/mydomain.co.uk/public_html/dev/');
define('DIR_WS_ADMIN', '/dev/admin/');
define('DIR_FS_ADMIN', '/home/sites/mydomain.co.uk/public_html/dev/admin/');
define('DIR_WS_CATALOG', '/dev/');
define('DIR_FS_CATALOG', '/home/sites/mydomain.co.uk/public_html/dev/');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
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', DIR_WS_CATALOG . 'includes/languages/');
define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'web14-a-shopp-b');
define('DB_SERVER_PASSWORD', '3UJdn6/h3');
define('DB_DATABASE', 'web14-a-shopp-b');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'mysql');
define('CFG_TIME_ZONE', 'Europe/London');
?>

 

Part of includes/application.php (I've tried them all - no change

 

// set the type of request (secure or not)
$request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL';
// $request_type = (getenv('SERVER_PORT') == '443') ? 'SSL' : 'NONSSL';
// $request_type = (getenv('HTTPS') == '1') ? 'SSL' : 'NONSSL';
// $request_type = ($_SERVER['HTTP_HOST'] == 'mydomain.co.uk') ? 'SSL' : 'NONSSL';
// $request_type = (getenv('SERVER_PORT') == '443') ? 'SSL' : 'NONSSL';

 

 

Output from cfgchk.php

 

Version 1.2

File Permissions: 0644

Found HTTPS_SERVER:

define('HTTPS_SERVER', 'https://web14.secure-secure.co.uk/mydomain.co.uk');

HTTPS URL passed check!

Found ENABLE_SSL.

define('ENABLE_SSL', true);

SSL enable passed check!

Found HTTPS_COOKIE_DOMAIN:

define('HTTPS_COOKIE_DOMAIN', 'web14.secure-secure.co.uk/mydomain.co.uk');

HTTPS_COOKIE_DOMAIN line parsed!



Parsing application_top.php for SSL detection key...

Found SSL detection key:

$request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL';



Done

 

 

Output from myenv,php

 

myenv.php Version 1.2

NONSSL Variables

HTTP HOST: []

Server Port: [80]

SSL Status: [undefined!]

Fowarded Server: [undefined!]

Fowarded Host: [undefined!]

Fowarded By: [undefined!]

$_SERVER['HTTPS']: [undefined!]

Load: 1

SSL popup

Not Found

The requested URL /mydomain.co.uk/dev/myenv.php was not found on this server.
Apache/2 Server at web14.secure-secure.co.uk Port 443

 

 

Can't think what else to add, it's big enough already, but any help would be greatly appreciated as I'm tearing my

hair out with this. I've already worked my way through Germ's advice in the 21 page thread I found but it still

doesn't work.

 

Read my reply to your PM.

 

It spells out the two most likely causes for your problem.


If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Share this post


Link to post
Share on other sites

×