pbreit, I tried to follow the Linode recipe along with your
instructions, but could not succeed. There were points were I really
did not know  what changes are needed to be made.
For example:
in '/etc/init.d/uwsgi' should the owner be uwsgi or www-data?
in /etc/default/uwsgi, should the 'MODULE=wsgi_configuration_module'
be included? If so, with what changes...
etc.

So I really appreciate it if you or others from web2py community can
sum up a complete recipe for deployment using nginx+uwsgi.

Cheers




 file and so I appre

On Mar 13, 11:45 pm, pbreit <[email protected]> wrote:
> I think I figured out the solution. Need to add one line to the nginx.conf:
> uwsgi_param     UWSGI_SCHEME    $scheme;
>
>     # HTTPS server
>     server {
>         listen       443;
>         server_name  "";
>         ssl                  on;
>         ssl_certificate      /opt/nginx/conf/server.crt;
>         ssl_certificate_key  /opt/nginx/conf/server.key;
>
>         location / {
>             uwsgi_pass      127.0.0.1:9001;
>             include         uwsgi_params;
>             uwsgi_param     UWSGI_SCHEME $scheme;
>         }
>
>         location /static {
>             root /var/web2py/applications/init/;
>         }
>     }

Reply via email to