2012/2/17 Roberto De Ioris <[email protected]>:
> are not you missing --http-modifier1 5 ?
Yes, it helps. My next (unsuccessfull) step is:
$ cat /home/enp/uwsgi/hello.psgi
sub {[200, ['Content-Type' => 'text/plain'], ['Hi, ' . shift->{REMOTE_ADDR}]]}
$ cat /home/enp/uwsgi/uwsgi.ini
[uwsgi]
http = 0.0.0.0:8080
plugins = psgi
route = ^/hello uwsgi:,5,0,/home/enp/uwsgi/hello.psgi
$ ./uwsgi `pwd`/uwsgi.ini
[uWSGI] getting INI configuration from /home/enp/uwsgi/uwsgi.ini
*** Starting uWSGI 1.1-dev (64bit) on [Fri Feb 17 16:03:12 2012] ***
compiled with version: 4.5.1 20101130 (ALT Linux 4.5.1-alt8) on 17
February 2012 09:59:02
current working directory: /home/enp/uwsgi
detected binary path: /home/enp/uwsgi/uwsgi
*** WARNING: you are running uWSGI without its master process manager ***
your memory page size is 4096 bytes
detected max file descriptor number: 1024
uWSGI http bound on 0.0.0.0:8080 fd 4
spawned uWSGI http 1 (pid: 29521)
uwsgi socket 0 bound to TCP address 127.0.0.1:48711 (port auto-assigned) fd 3
initialized Perl 5.12.3 main interpreter at 0x656250
your server socket listen backlog is limited to 100 connections
*** Operational MODE: single process ***
*** no app loaded. going in full dynamic mode ***
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI worker 1 (and the only) (pid: 29520, cores: 1)
$ curl http://127.0.0.1:8080/hello
<h1>uWSGI Error</h1>Perl application not found
uwsgi output tail:
[pid: 29547|app: -1|req: -1/1] 127.0.0.1 () {28 vars in 434 bytes}
[Fri Feb 17 16:04:34 2012] GET /hello => generated 46 bytes in 138
msecs (HTTP/1.1 500) 2 headers in 63 bytes (0 switches on core 0)
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi