Still Waiting Posted March 11, 2003 Share Posted March 11, 2003 I am running a snapshot from a couple months back. Here is my question. My host requires me to put secure docs in a different folder. So when I access my site with: http://www.mysite.com it pulls the contents from /usr/local/home/mysite/httpdocs But when I access it secure with: https://www.mysite.com it pulls the contents from /usr/local/home/mysite/httpsdocs So my question is this. CurrentlyI have 2 complete copies of OSC uploaded to my server. One in the httpdocs folder, and one in the httpsdocs folder. My problem is that when users log in, and ad something do their cart, then go to checkout (transfering them to https://) it makes them log in again. Is there a simple fix for this? Do I HAVE to run 2 full copes of OSC because of my hosts configuration? Thanks Link to comment Share on other sites More sharing options...
Ajeh Posted March 11, 2003 Share Posted March 11, 2003 If you use $DOCUMENT_ROOT in your configure.php file, set the definition to the real path. Link to comment Share on other sites More sharing options...
Ajeh Posted March 11, 2003 Share Posted March 11, 2003 Oh ... and you still need the two copies as you don't know what files the user may go to via secure/non-secure Link to comment Share on other sites More sharing options...
Still Waiting Posted March 11, 2003 Author Share Posted March 11, 2003 So would this need to be different for each copy of OSC i am running? Like for the one in the httpsdocs (secure) folder I would want to change $DOCUMENT_ROOT to /usr/local/home/mysite/httpsdocs and for the httpdocs (non secure) folder I would want to change $DOCUMENT_ROOT to /usr/local/home/mysite/httpdocs Is my thinking correct on this? Thanks Link to comment Share on other sites More sharing options...
Ajeh Posted March 11, 2003 Share Posted March 11, 2003 Good question ... :shock: I don't use those funny servers that require two copies myself ... and on those I have worked on, I just fuss around with it until the dang thing works right for me ... I am sure someone in a similar boat, such as yourself, will come up with a better answer for you ... :D Link to comment Share on other sites More sharing options...
Still Waiting Posted March 11, 2003 Author Share Posted March 11, 2003 OK thanks This is the one thing I liked about phpshop. There was one main file that did all the processing, (index.php) so if you were in a situation like this, you would just put another copy of that file in the secure folder. Link to comment Share on other sites More sharing options...
Still Waiting Posted March 11, 2003 Author Share Posted March 11, 2003 Tried like you suggested, and it still makes me login. :( Bummer :( Link to comment Share on other sites More sharing options...
Ajeh Posted March 11, 2003 Share Posted March 11, 2003 Somewhere something is not configured right ... whether using 1 or two locations for the secure/non-secure there is one login. I just cannot recall the trick ... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.