Re: Simple configuration (http) returns "404 - No Such Resource"

From: Willy Tarreau <w#1wt.eu>
Date: Fri, 26 Jun 2009 02:51:07 +0200


On Thu, Jun 25, 2009 at 03:33:46PM -0700, happybrowndog#hotmail.com wrote:
>
> Here is my rather simple configuration:
> backend apaches
> mode http
> timeout connect 10s
> timeout server 30s
> balance roundrobin
> server apache1 127.0.0.1:81 weight 1 maxconn 512
>
> backend eventserver
> mode http
> timeout connect 5s
> timeout server 5m
> balance roundrobin
> server orbited localhost:8000 weight 1 maxconn 10000
>
>
> frontend app_proxy
> bind *:80
> mode http
> timeout client 5m
> option forwardfor
> default_backend apaches
> acl req_orbited_path path_beg /tcp
> use_backend eventserver if req_orbited_path
> *************************************************
>
> When I use a browser to connect to a path such as: http://localhost/orbit/demos/stomp , I will get the page the first time, but if I refresh the browser I get "404 - No Such Resource". This happens almost every time, yet when I hit the browser directly using port 81 (as in http://localhost:81/orbit/demos/stomp), the page returns correctly.
> The configuration I am using is so simple, I can't see why it is doing what it is. Could someone please help?

I think it happens after you make one request to /tcp/<something>. Your browser reuses the same connection which is maintained to the wrong server. Please add "option httpclose" in your frontend, I'm sure it will fix the issue.

Willy Received on 2009/06/26 02:51

This archive was generated by hypermail 2.2.0 : 2009/06/26 03:00 CEST