Hello all , I am having some issues regarding my shared ssl and how to set it up on drupal.
I have read numerous posts about issues with setting it up. I am able to view my home page using my shared ssl but cannot view any other page on my drupal site using my shared ssl. The main post I followed was http://drupal.org/node/339552 which gave a script to put in the settings.php file.
01: $request_type = ($_SERVER['HTTP_X_FORWARDED_HOST'] == 'ssl.proxy.org') ? 'SSL' : 'NONSSL';
02: if($request_type!="SSL"){
03: //header("Location:https://ssl.proxy.org/www.example.com");
04: $base_url = 'http://www.example.com'; // NO trailing slash!
04a: $base_url = 'http://www.example.com/some/dir'; // NO trailing slash!
05: $cookie_domain = 'www.example.com';
06: } else {
07: $base_url = 'https://ssl.proxy.org/www.example.com'; // NO trailing slash!
07a: $base_url = 'https://ssl.proxy.org/www.example.com/some/dir'; // NO trailing slash!
08: $cookie_domain = 'ssl.proxy.org';
09: $_SERVER['HTTPS']='on';
10: $_SERVER['REQUEST_URI']='/www.example.com'. $_SERVER['REQUEST_URI'];
10a: $_SERVER['REQUEST_URI']='/www.example.com'. $_SERVER['REQUEST_URI']; // Only the DNS name of the site needed here!
11: $conf = array(
12: 'reverse_proxy' => TRUE,
13: 'reverse_proxy_addresses' => array($_SERVER['REMOTE_ADDR']),
14: );
15: }I followed this to the letter but am still having problems. Once this has been put in my settings.php and all my site info added in the relevant places I am no longer able to go to my home page using my secure address, I get a 404 error saying "URL /home/sites/example.com/public_html/index.php was not found on this server." When accessing my homepage through normal http:// I just get a blank white screen.
If anyone could guide me in how to sort this out as I have contacted my web server and their response is they can't really support scripting questions but thought that this script should work.
Comments
purchased an ssl
Issue resolved, instead of messing on with scripting desperately trying to get shared ssl to work I bought a ssl and am having no problems with it now.