Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Won't show SSL pages using VirtualHost


Basher52

Recommended Posts

Posted

Hi there =)

 

I got a small problem that probably is just a configuration error by myself, but i cant find it.

in httpd.confg ive added these lines:

 

<VirtualHost *:80>

DocumentRoot /var/www/html/Racing/catalog

ServerName racingaliens.net

</VirtualHost>

 

and in catalog/includes/configure.php i got this:

 

define('HTTP_SERVER', 'http://racingaliens.net/'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://racingaliens.net/'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'racingaliens.net');

define('HTTPS_COOKIE_DOMAIN', 'racingaliens.net');

define('HTTP_COOKIE_PATH', '');

define('HTTPS_COOKIE_PATH', '');

 

 

Whenever i go to the page by using http it works the "main store" works just fine, but when i try to login as a user it turns into https and then i get:

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

 

and when i try to go into the page directly using https i into the 'Apache Test Page' the one telling you dont have any website setup yet(or not installed in the "root" folder

 

i got sort of the same problem with the Admin page too, but i think i just trashed the configure.php script.

i tried all sorts of different setting with the 'define' lines but i just cant find the correct one.

this worked perfectly without VirtualHost

btw i use VirtualHost because i didnt install the 'catalog' directory in my web-root

 

any ideas?

Archived

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

×
×
  • Create New...