So I guess I don't need spawn-fcgi from lighty? And I
"/home/amcgregor/app/site/src/gothcandy/public" would be the place where the
python files are located?

In Lighty I got this config:

    fastcgi.server = (
        "/index.py" => (
            "/"=>(
                "socket" => "/tmp/webpy_one.fastcgi.socket",
                "bin-path" => ".../www/index.py",
                "max-procs" => 1,
                "bin-environment" => (
                    "REAL_SCRIPT_NAME" => ""
                ),
                   "check-local" => "disable"
    )))

It directly points to my index.py, which is also the only file that needs to
be accessed. Can I do something similiar in Nginx?

2009/5/29 Alice Zoë Bevan–McGregor <[email protected]>

> Does someone know how to deploy web.py with Nginx? I once tried
>> mod_wsgi, but I couldn't compile Nginx because the module was too old.
>> So I would like to know how to do this with Fastcgi.
>>
>
> I use FCGI with Flup and an on-disk socket.  My nginx configuration is
> similar to:
>
> server {
>    server_name                     www.gothcandy.com gothcandy.com;
>    listen                          80;
>
>    access_log
>  /home/amcgregor/var/log/gothcandy-access.log combined;
>    error_log
> /home/amcgregor/var/log/gothcandy-error.log error;
>
>    include                         core/defaults.conf;
>
>    location / {
>        root
>  /home/amcgregor/app/site/src/gothcandy/public;
>
>        include                     core/fcgi.conf;
>        fastcgi_param               SCRIPT_NAME                         "";
>
>        if ( -e $request_filename ) {
>            break;
>        }
>
>        fastcgi_pass                unix:/home/amcgregor/var/run/cms.sock;
>    }
> }
>
>        — Alice.
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to