[Glass] Deploying problem with serverPath and nginx

Mariano Martinez Peck marianopeck at gmail.com
Mon Jan 6 05:59:13 PST 2014


Hi guys,

I am having a problem trying to deploy an app with nginx. Say my seaside
app is registered with a name 'myApp' and I am deploying it at:
https://localhost/myApp and I want to have it under 'https://localhost/test'.
I am using nginx and FastCGI (Gemstone).

Notice that I don't want to register the app with a different name ('test'
in this example). I want the app to continue being deployed with 'myApp'
name. I just change to change the URL suffix.

In seaside side I did:

app
    preferenceAt: #serverProtocol put: 'https';
    preferenceAt: #serverHostname put: 'localhost';
    preferenceAt: #serverPort put: 443;
     preferenceAt: #serverPath put: '/test'.

And in nginx I have:


location /test {
        try_files $uri @seasideTest;
}


        location @seasideTest {
          include fastcgi_params;
          fastcgi_pass seaside;

        }


      upstream seaside
      {
        server localhost:9001;
      }


However, if I browse  'https://localhost/test' I get a "/test not found".
And in nginx logs I get "2014/01/06 10:51:06 [info] 43449#0: *31 client
prematurely closed connection while reading client request line, client:
127.0.0.1, server: localhost"

Any idea what I am doing wrong? Maybe I still need a rewrite of the url
from '/test' to '/myApp' ? ...

Thanks in advance,


-- 
Mariano
http://marianopeck.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20140106/c1ee0b86/attachment.html>


More information about the Glass mailing list