Jump to content
Larry Ullman's Book Forums

Openssl - Https://Localhost Points To Another Htdocs Directory


Recommended Posts

Hi,

 

I have just installed openssl but I am getting the problem in the topic title.

 

When I was pressing the checkout button in the coffee site example I was getting the following error

 

The requested URL /ecommerce_2/stage_2/html/checkout.php was not found on this server.

(my BASE_URL is localhost/ecommerce_2/stage_2/html/)

 

It took me a while to realise that https://localhost was pointing to a htdocs folder I don't use

(C:/wamp/apache22/htdocs)

 

I have set my document root to (c:/wamp/htdocs) where I keep the coffee site and thats where http://localhost points to and the site works fine to the point of pressing checkout.

 

The only solution I have come up with so far is to place another copy of the site in (C:/wamp/apache22/htdocs) so that when I press checkout https finds checkout.php and this seems to work. but surely this is not how it's intended?

 

I have trawled through the apache configurations files, and I'm having no luck trying to get https to point to my actual document root (c:/wamp/htdocs) any ideas?

 

Regards,

 

Rob

 

 

Link to comment
Share on other sites

 Share

×
×
  • Create New...