On 11/22/2010 7:57 PM, db-py wrote:
Thanks! I will give it a try..

On Nov 22, 5:28 pm, Phyo Arkar<phyo.arkarl...@gmail.com>  wrote:
i have not tried as FCGI tho.

Did you get fcgi working with nginx?

I've got them talking, but I keep getting the welcome app at / instead of the app I want.

This worked in lighttpd:

$HTTP["host"] =~ "(^|www\.)aktzero\.com$" {
 server.document-root="/var/www/web2py"
    url.rewrite-once = (
      "^(/.+?/static/.+)$" => "/applications$1",
      "(^|/.*)$" => "/handler_web2py.fcgi/aktzero/$1",
    )
}

This is what I have now for ngnx:

location / {
    fastcgi_pass  unix:/tmp/fcgi.sock;
    include fastcgi_params;
    fastcgi_param  SCRIPT_FILENAME  /handler_web2py.fcgi;
    fastcgi_param DOCUMENT_URI /aktzero$document_uri;
}

I've tried adjusting the SCRIPT_FILENAME, and just added the DOCUMENT_URI, which seems to be reflected in the env variable, but doesn't do what I need.

Basically, to see my site right now, I have to go to http://aktzero.com:81/aktzero/

http://aktzero.com:81/aktzero/default/test has the four buttons on it, perhaps someone can look at the session info and tell me where I went wrong.

Any ideas?

--
Andrew Thompson
http://aktzero.com/

Reply via email to