Hosting a web application from a subsite

Im not having much luck trying to configure this site the way I want. Im
modifying http://wiki.nginx.org/Piwik to suit a case in which it is
served out of a subsite location, e.g. example.com/stats.

Ive created 2 configuration files. One is included outside the server
sections of the main sites configuration file:
http://paste2.org/e8HcPkda

The second is included from the server 443 section of the site:
http://paste2.org/ts8j5VWK

I was attempting to deliver this via proxy_pass, but it appears Ive
failed: the error log throws:
[error] 30196#0: *6289 upstream sent unsupported FastCGI protocol
version: 72 while reading response header from upstream, client:
185.47.241.122, server: tohuw.net, request: “GET /stats/ HTTP/1.1”,
upstream: “fastcgi://127.0.0.1:8001”, host: “tohuw.net

Hello!

On Mon, Jul 07, 2014 at 02:39:32AM -0400, Ron Scott-Adams wrote:

I’m not having much luck trying to configure this site the way I want. I’m
modifying http://wiki.nginx.org/Piwik to suit a case in which it is served out of
a subsite location, e.g. example.com/stats.

I’ve created 2 configuration files. One is included outside the server sections
of the main site’s configuration file: http://paste2.org/e8HcPkda

The second is included from the server 443 section of the site:
http://paste2.org/ts8j5VWK

I was attempting to deliver this via proxy_pass, but it appears I’ve failed: the
error log throws:
[error] 30196#0: *6289 upstream sent unsupported FastCGI protocol version: 72
while reading response header from upstream, client: 185.47.241.122, server:
tohuw.net, request: “GET /stats/ HTTP/1.1”, upstream: “fastcgi://127.0.0.1:8001”,
host: “tohuw.net

You are connecting with fastcgi_pass (which talks FastCGI
protocol) to an HTTP backend server, this won’t work. To talk to
HTTP backends you have to use proxy_pass (note “proxy”, not “fastcgi”).


Maxim D.
http://nginx.org/

Ah! That makes a good deal of sense. I feel silly; of course Fastcgi is
the wrong way to go here. Ive rewritten it successfully and it all works
now. Thanks Maxim!
http://paste2.org/NaV3U3YU
http://paste2.org/cLGfIEGV

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs