On Tue, 3 Jul 2012 11:26:46 +0200
"Roberto De Ioris" <[email protected]> wrote:

> 
> i did not know that, wsapi does not mention that, but i assume we can
> 'fix' the app loader to support tables too.
> 

My first thought is a block of Lua stub code in a const char variable,
could be easier than stack manipulation in C.

> 
> the configuration looks good, can you paste the nginx one ?
> 

The config is here:
----

user   nginx  nginx;
worker_processes  2;

error_log  /var/log/nginx/error.log  info;
pid        /var/run/nginx.pid;

events {
    worker_connections  64;
}


http {
    include       /usr/pkg/etc/nginx/mime.types;
    default_type  application/octet-stream;

    log_format  main  '$remote_addr - $remote_user [$time_local]
"$request" ' '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';


    sendfile        on;
    keepalive_timeout  65;

    log_not_found off;

        server {
                listen 443 default ssl;

                server_name example.com www.example.com;
                server_tokens off;

                ssl_certificate         /etc/cert/chain.cert;
                ssl_certificate_key     /etc/cert/server.key;
                ssl_protocols           SSLv3 TLSv1;
                ssl_ciphers             ALL:!aNULL:!ADH:!eNULL:!LOW:!
EXP:RC4+RSA:+HIGH:+MEDIUM;

                root /web/example.com/htdocs;

                access_log /web/example.com/logs/access_log main;
                error_log  /web/example.com/logs/error_log info;

                location ~ \.php$ {
                        include /pkg/etc/nginx/fastcgi.conf;
                        fastcgi_pass  127.0.0.1:9000;
                }

                location /fin {
                        auth_basic "fin";
                        auth_basic_user_file /web/example.com/passwd;
        
                        include /usr/pkg/etc/nginx/uwsgi_params;
                        uwsgi_pass localhost:9002;
                        uwsgi_modifier1 6;
                }
           }
}
----

And included wsgi_params:

uwsgi_param  QUERY_STRING       $query_string;
uwsgi_param  REQUEST_METHOD     $request_method;
uwsgi_param  CONTENT_TYPE       $content_type;
uwsgi_param  CONTENT_LENGTH     $content_length;

uwsgi_param  REQUEST_URI        $request_uri;
uwsgi_param  PATH_INFO          $document_uri;
uwsgi_param  DOCUMENT_ROOT      $document_root;
uwsgi_param  SERVER_PROTOCOL    $server_protocol;

uwsgi_param  REMOTE_ADDR        $remote_addr;
uwsgi_param  REMOTE_PORT        $remote_port;
uwsgi_param  SERVER_PORT        $server_port;
uwsgi_param  SERVER_NAME        $server_name;

---

I've omitted several other location directives and virtual hosts for
simplicity. Also, nginx is version 1.0.15.

>
> I suspect some netbsd-related issue, now i am at europython, i will try to
> check that asap.
> 

Thanks for the quick response. I'm not in urgent need of a fix so just
enjoy the con :)

-- 
Aaron B. <[email protected]>
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to