---
title: "nginx+resin session stick"
author: "aooboo"
date: "2011-01-13T10:24:09Z"
tags: ["Google", "JVM", "nginx"]
categories: ["互联网"]
slug: "nginx-resin-session-stick"
draft: false
lastmod: "2011-01-13T10:26:40Z"
id: 870009
url: "https://aooboo.iteye.com/blog/870009"
---

[http://code.google.com/p/nginx-upstream-jvm-route/wiki/nginx\_with\_resin](http://code.google.com/p/nginx-upstream-jvm-route/wiki/nginx_with_resin)

 

忙活了好多天，最终通过作者才注意到配置的细节，sucess. 细节啊。。。

这个事情上，深刻体会到：能有信心找到解决问题的途径才是解决问题的关键

 

**For all resin servers**

```
    <server id="a" address="192.168.0.100" port="8080">
    <http id="" port="80"/>
    </server>
    <server id="b" address="192.168.0.101" port="8080">
    <http id="" port="80"/>
    </server>
```

And start each resin instances like this:

**server a**

```
shell $> /usr/local/resin/bin/httpd.sh -server a start
```

**server b**

```
shell $> /usr/local/resin/bin/httpd.sh -server b start
```