brenwa Posted August 14, 2008 Posted August 14, 2008 hi Im hoping someone with a it more knowledge can shed some wisdom in my direction Im in the process of setting up my cart ...and ... Im moving hosting......and dumping an x-cart to move ot oscommerce the actual domain of my existing site dns still points to my old server( www.auntiebob.com ) untill everything is done on the new server..... basically the cart is other than a couple of tweaks finished..except for ssl.. i have been installing and editing the site and cart on the new host via a modified hosts file on my pc i have set up my secure domain as a subdomain (secure.auntiebob.com) and im using a modified "A" record on the subdomain so it resolves properly...since that same subdomain also exists on my old hosting... the new A record dns is resolving correctly and pointing secure.auntiebob.com to my new hosting... if i go to my secure.auntiebob.com domain its working...no errors ect...it is configured correctly itself... and it shows the lock, and i have a modified index.html file sitting in the secure directory to verify its the correct dns the relivent portion of my catalog/configure.php file is pasted below... (the ssl cert is set up without the www..so the secure.auntiebob.com is correct) here is the problem..... whenever i get to the point where i hit the checkout button i get https://secure.auntiebob.com/ab_cart/catalo...caoffnkij51nai0 a 404 error Not Found The requested URL /ab_cart/catalog/checkout_shipping.php was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. now as far as i can see everything is looking as it should......can anyone give me a heads up? I have scanned the board for the better part of the day and after reading dozens of posts i cant find anything og the 404 error other than the folks that have "ssl true" rather than false when there isnt a cert.. and btw its an adult site...so if you decide you want to see for yourself....heads up and regardless without modifying your hosts file you wont be in the right place anyway... <?php define('HTTP_SERVER', 'http://auntiebob.com'); define('HTTPS_SERVER', 'https://secure.auntiebob.com'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', 'auntiebob.com'); define('HTTPS_COOKIE_DOMAIN', 'secure.auntiebob.com'); define('HTTP_COOKIE_PATH', '/ab_cart/catalog/'); define('HTTPS_COOKIE_PATH', '/ab_cart/catalog/'); define('DIR_WS_HTTP_CATALOG', '/ab_cart/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/ab_cart/catalog/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
FIMBLE Posted August 14, 2008 Posted August 14, 2008 Hi, You are missing the https & http protocol from the secure and http cookies. define('HTTP_COOKIE_DOMAIN', 'www.URL addrwss.com'); define('HTTPS_COOKIE_DOMAIN', 'https://Secure URL address.com'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); Try it in the above method REgards Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
FIMBLE Posted August 14, 2008 Posted August 14, 2008 Hi, You are missing the https & http protocol from the secure and http cookies. define('HTTP_COOKIE_DOMAIN', 'www.URL addrwss.com'); define('HTTPS_COOKIE_DOMAIN', 'https://Secure URL address.com'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); Try it in the above method REgards Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
FIMBLE Posted August 14, 2008 Posted August 14, 2008 Hi, You are missing the https & http protocol from the secure and http cookies. define('HTTP_COOKIE_DOMAIN', 'www.URL addrwss.com'); define('HTTPS_COOKIE_DOMAIN', 'https://Secure URL address.com'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); Try it in the above method REgards Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
FIMBLE Posted August 14, 2008 Posted August 14, 2008 oops sorry for the many replies, the forum went down on me i did not think the reply would get through! Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
brenwa Posted August 14, 2008 Author Posted August 14, 2008 thanks Ill take lots of replies over none any day :) I tried it as you suggested and I get exactly the same result a 404 error <?php define('HTTP_SERVER', 'http://auntiebob.com'); define('HTTPS_SERVER', 'https://secure.auntiebob.com'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', 'www.auntiebob.com'); define('HTTPS_COOKIE_DOMAIN', 'https://secure.auntiebob.com'); define('HTTP_COOKIE_PATH', '/ab_cart/catalog/'); define('HTTPS_COOKIE_PATH', '/ab_cart/catalog/'); define('DIR_WS_HTTP_CATALOG', '/ab_cart/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/ab_cart/catalog/'); Hi, You are missing the https & http protocol from the secure and http cookies. define('HTTP_COOKIE_DOMAIN', 'www.URL addrwss.com'); define('HTTPS_COOKIE_DOMAIN', 'https://Secure URL address.com'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); Try it in the above method REgards
FIMBLE Posted August 14, 2008 Posted August 14, 2008 Is the path to your secure catalog https://secure.auntiebob.com/ab_cart/catalog/ This is what the configure file is reading it as. Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
brenwa Posted August 14, 2008 Author Posted August 14, 2008 well that is a correct path as far as my secure domain is concerned i havent seen anything anywhere in installing the cart about having to duplicate the file structiure in the secure folder or subdomain anything i can find is simply point the cart to your secure folder or subdomain enable ssl and your pretty much done but on the other hand this is the first time i have ever actually tried to configure a carts ssl so earlier that did occur to me since it is a 404 error..and the cart is looking (according to the secure url in my browser ) for this subdirectory ab_cart/catalog/ at the end of https://secure.auntiebob.com/ab_cart/catalog/ as you mentioned... so I thought well maybe im supposed to go into my secure subdomain and recreate that folder structure..so I did and the result was exactly the same... and as i said i saw no-where any suggestion to do that....figured what the hell it cant hurt to try.... the result was exactly the same so i went back and delieted the directlries i had added Is the path to your secure catalog https://secure.auntiebob.com/ab_cart/catalog/ This is what the configure file is reading it as.
FIMBLE Posted August 14, 2008 Posted August 14, 2008 I am pretty sure i saw a post about this type of thing a while ago. I tried to pull up your catalog nonssl but that redirected to your main index.php Have you tired a search on the forum? Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
brenwa Posted August 14, 2008 Author Posted August 14, 2008 ive done nothing else for the last 12 hours including googeling my ass off i see lots of people that have the problem...but NO solutions part of the problem is ssl and a 404 error "search" brings up dozens of posts about how it happens when you have ssl on and do NOT have a cert in place I have been wading thru them all day treying to get an answer and nothing...its all about the above..or the occasional post about trhis ..then they do not go back and post what the solution was...if they ever found one.... its been quite frustrating so far.... and yup on that catalog nonssl ..its all about the modified hosts file :) I am pretty sure i saw a post about this type of thing a while ago.I tried to pull up your catalog nonssl but that redirected to your main index.php Have you tired a search on the forum?
FIMBLE Posted August 14, 2008 Posted August 14, 2008 A long shot Bren but try this define('HTTP_SERVER', ''http://auntiebob.com'); define('HTTPS_SERVER', ''https://secure.auntiebob.com'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', '.auntiebob.com'); define('HTTPS_COOKIE_DOMAIN', '.secure.auntiebob.com'); define('HTTP_COOKIE_PATH', '/ab_cart/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/ab_cart/catalog/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
brenwa Posted August 14, 2008 Author Posted August 14, 2008 thanks for the effort Nic... ..but that didnt do it...it took the cart down with a syntax error i did find this on the other hand in a post from a few years ago Now, here's my problem: - if i type: https://www.suziwreck.com.au/catalog, i get a "The requested URL /catalog was not found on this server." - if i type: http://www.suziwreck.com.au/, i can view the normal site, but when i go to checkout, i get a "The requested URL /secure/catalog/checkout_shipping.php was not found on this server." and the reply was Ask your host to make a symbolic link to your http_docs directory from the secure. now there was again no follow up saying it was correct or incorrect.... anyone want to venture in on that?
brenwa Posted August 14, 2008 Author Posted August 14, 2008 SOLVED the solution is a symbolic link from insecure to secure I sent the info (original quote below) to my host...and this was the reply.... Yes, the symbolic link method should work. I've removed the emptysecure.auntiebob.com directory and made it into a symlink. Give it a try now and let me know if you are still having issues. and it worked just perfect.... so for folks in the future with this problem, who are searching this may sound a bit redundant..but im putting the paragraph below for search purposes because finding anything on this was almost impossible if you are getting a 404 page error and you DO have a SSL in place ssl is set to true, and there is a secure certificate, and it is functioning properly secure certificate is in place and working, my configure.php is correct, but Im getting 404 errors at checkout and or account links oscommerce dreamhost and ssl issues this issue seems to be host dependent, in my case my host (dreamhost) placed a separate directory in my home directory for my secure subdomain the solution was to create a symbolic ink to it you dont need to know what that is.. but your host will..if they dont...get a different host.... it will take them about 2 min to fix the problem.... be aware the actual secure folder is deleted in the process and the "symbolic" link replaces it post Now, here's my problem: - if i type: https://www.suziwreck.com.au/catalog, i get a "The requested URL /catalog was not found on this server." - if i type: http://www.suziwreck.com.au/, i can view the normal site, but when i go to checkout, i get a "The requested URL /secure/catalog/checkout_shipping.php was not found on this server." reply Ask your host to make a symbolic link to your http_docs directory from the secure.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.