# Reverse proxy shopping system

**URL:** <https://www.ruby-forum.com/t/reverse-proxy-shopping-system/220799>\
**Category:** NGINX\
**Created:** [June 20, 2012, 5:03pm UTC](https://www.ruby-forum.com/t/reverse-proxy-shopping-system/220799 "2012-06-20T17:03:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [June 20, 2012, 5:03pm UTC](https://www.ruby-forum.com/t/reverse-proxy-shopping-system/220799/1 "2012-06-20T17:03:09Z")

</div>

Hi,

I have several shopping systems running on apache that I would like to  
proxy with nginx. In general it works fine, but in some shops I have the  
problem that when I add items to the shopping cart and then proceed to  
view the shopping cart, the cart seems empty. Without the proxy it works  
just fine.

So I was wondering how I could debug this. Any hints on how to takle  
this so I have a clue on how I could configure nginx so that it works  
would be apreciated.

Isaac

---

<div class="post-metadata">

**Author:** ![Isaac\_H](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/e480ec/32.png) [@Isaac\_H](https://www.ruby-forum.com/u/Isaac_H)\
**Post date:** [June 21, 2012, 11:09am UTC](https://www.ruby-forum.com/t/reverse-proxy-shopping-system/220799/2 "2012-06-21T11:09:26Z")

</div>

I found out that the proxied version of the websites misses a certain  
cookie, which is present in the unproxied versions. Of course its not  
clear that his is the root of the problem, but at least a hint.

The proxy module defines two parameters related to cookies,  
proxy\_cookie\_domain and proxy\_cookie\_path. As far as I understand, these  
parameters are not suitable for solving my problem. Please correct me.

Any hint?

Isaac

---

<div class="post-metadata">

**Author:** ![Isaac\_H](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/e480ec/32.png) [@Isaac\_H](https://www.ruby-forum.com/u/Isaac_H)\
**Post date:** [June 21, 2012, 11:22am UTC](https://www.ruby-forum.com/t/reverse-proxy-shopping-system/220799/3 "2012-06-21T11:22:53Z")

</div>

ok, adding the nginx repo to my debian 6 replaced the historic version  
that ships with debian (0.7) with version 1.2, which solved the problem.

Sorry for bothering you.

Isaac
