Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

httpdocs and httpsdocs SSL folders


digital_soul18

Recommended Posts

Hello :D

I just wanted to ask a question regardin SSL and my httpdocs folder. I have a server in which when i log on using FTP i have two relevant folders for putting all my website work on which one is named 'httpdocs' and the other 'httpsdocs' (which is obviously the SSL secured folder) so when I upload my files to 'httpdocs' it works ok but has no SSL obviously. When I specifiy within includes/configure.php

 

  define('HTTP_SERVER', 'https://www.digital-soul.com.au'); // eg, http://localhost - should not be empty for productive servers

 

then whenever a SSL part is required for the website then it will search for files in the 'httpsdocs' folder (as far as I can conclude). This is so stupid right? cause i would have to make two copies of the website, one on the httpdocs folder and the other in httpsdocs folder... correct?? Is there a better way around this ppl? or is my webserver just hopeless? :P

Link to comment
Share on other sites

geez, i finally found a relevant forum for my needs, but thanks anyway everyone who views this, ill post the link here for other people with similar problems...

 

http://www.oscommerce.com/forums/index.php?sho...=0entry376996

 

actully, I've got another question, does anyone know what the servers need to change on their systems so the httpdocs and httpsdocs folders won't need to have duplicate files?? I think my webhost is stupid, he got other things wrong before so I wouldn't be surprised (i suppose thats what you get from cheap hosts) but i guess if someone helps me i could tell him. Cheers people!

Link to comment
Share on other sites

This is so stupid right? cause i would have to make two copies of the website, one on the httpdocs folder and the other in httpsdocs folder... correct??

 

Yep and Yep. Stupid and necessary.

 

Is there a better way around this ppl? or is my webserver just hopeless? 

 

There's a few ways around it other than duplicating the entire site but none are simple.

 

One basic way is to trim down the pages that use the secure side so they only have generic images and boxes.

 

In other words, simplify those pages so they don't have product info which is dynamic, only what's really needed.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Hey AllanR

 

would you know by any chance what I could tell my host to do to fix this problem? is it easy? do you think they will charge for this service?

I don't have the problem since my primary server accounts don't use the https folder system but the suggestion of using a symbolic link (AndiC's suggestion in the thread you linked) makes a lot of sense.

 

So I'm thinking you'd create a symbolic link to the http catalog folder and place it in the https folder. Ask your host or maybe someone here has more experience than I do. It would be easy to do.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...