I'm trying to set up AC 7 on a site that uses Apache as its web server.
I have IIS running on non-standard ports (8080 / 8443) and I have set up Apache to serve as a proxy to those ports.
It's all working well except for situations in which AC7 wants to switch users back from https to http. The user is redirected to http://localhost:8443/ContactUs.aspx as an example. I understand why it's doing this... it thinks localhost:8443 is the correct URL.
What I'm wondering is where this redirect function is and can I alter it. Is it in one of the DLLs in /bin? (Hope not.)
Thanks in advance for any help.
-- Ethan
Redirecting to Non-SSL URLs
Re: Redirecting to Non-SSL URLs
I had a similar issue.
Take a look at the ablecommerce.config file in the data directory. There is a listing of secured pages and directories there that you can add to (or remove from) at your pleasure.
Take a look at the ablecommerce.config file in the data directory. There is a listing of secured pages and directories there that you can add to (or remove from) at your pleasure.
-
- Ensign (ENS)
- Posts: 6
- Joined: Tue Jun 17, 2008 7:36 pm
Re: Redirecting to Non-SSL URLs
Thanks, Keats. That file is helpful.
My issue, though, isn't what is called by SSL but the transition from SSL to non-SSL when you go from a checkout page back to shopping.
Now that I think about it, one option would be to have the store run entirely in SSL.
-- Ethan
My issue, though, isn't what is called by SSL but the transition from SSL to non-SSL when you go from a checkout page back to shopping.
Now that I think about it, one option would be to have the store run entirely in SSL.
-- Ethan
- Logan Rhodehamel
- Developer
- Posts: 4116
- Joined: Wed Dec 10, 2003 5:26 pm
Re: Redirecting to Non-SSL URLs
Bug 6865 was reported a couple of days ago, and in the course of investigation I believe we discovered the problem you are reporting. Since you are working with apache, I think you can probably use this quick info. Pop open the database, find the ac_StoreSettings table. Do you see the field for "SSLEncryptedUri" that has your SSL domain? OK, make a new field using same store ID, field name "SSLUnencryptedUri" and field value of your standard (non-SSL) domain. After that, I believe it will switch back to non-SSL context correctly.
Cheers,
Logan
.com
If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
Logan

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
-
- Ensign (ENS)
- Posts: 6
- Joined: Tue Jun 17, 2008 7:36 pm
Re: Redirecting to Non-SSL URLs
Hi, Logan--
Thanks for the response. I tried it but it doesn't seem to work. Is there a patch I need to download to get the code to recognize the SSLUnencryptedUri variable?
-- Ethan
Thanks for the response. I tried it but it doesn't seem to work. Is there a patch I need to download to get the code to recognize the SSLUnencryptedUri variable?
-- Ethan
- Logan Rhodehamel
- Developer
- Posts: 4116
- Joined: Wed Dec 10, 2003 5:26 pm
Re: Redirecting to Non-SSL URLs
Hello Ethan-
Can you access this link: http://bugs.ablecommerce.com/show_bug.cgi?id=6865
The patch is attached to this bug report. Follow the posted instructions and please post back here the result.
Can you access this link: http://bugs.ablecommerce.com/show_bug.cgi?id=6865
The patch is attached to this bug report. Follow the posted instructions and please post back here the result.
Cheers,
Logan
.com
If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
Logan

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
-
- Ensign (ENS)
- Posts: 6
- Joined: Tue Jun 17, 2008 7:36 pm
Re: Redirecting to Non-SSL URLs
Thanks, it works!
That was our last big hurdle. I'm pretty confident that our client will be buying two licenses!
-- Ethan
That was our last big hurdle. I'm pretty confident that our client will be buying two licenses!
-- Ethan