[uWSGI] nginx+uwsgi problem: Can't set empy SCRIPT_NAME param

Andrey Petrov shazow at gmail.com
Tue Jul 13 22:14:32 CEST 2010


Roberto, looks like it works!

I used the second last commit, it compiled fine. Then I built nginx-0.7.67
with the new uwsgi module configured.

Here is my site configuration:

        location / {
                uwsgi_pass   unix:///tmp/uwsgi.sock;
                include        uwsgi_params;
                uwsgi_param SCRIPT_NAME "";
        }

And my uwsgi command:

./uwsgi -s /tmp/uwsgi.sock -H /var/lib/wsgi/ --paste
config:/var/lib/wsgi/src/myproject/staging.ini --uid 33 --gid 33 -L

All routes work, and haven't encountered any infinite redirects. Looks good
to me.

Thank you again!

- Andrey

On Tue, Jul 13, 2010 at 12:53 PM, Roberto De Ioris <roberto at unbit.it> wrote:

>
> Il giorno 13/lug/2010, alle ore 21.44, Andrey Petrov ha scritto:
>
> > Hi Roberto, sorry for not getting back.
> >
> > I just tried to compile uwsgi from the latest hg tip, and I ran into this
> error:
> >
> > gcc -pthread -c -Wall -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> -I/usr/include/python2.6 -I/usr/include/python2.6 -DUWSGI_EMBEDDED
> -DUWSGI_UDP -DUWSGI_ASYNC -DUWSGI_MULTICAST -DUWSGI_MINTERPRETERS
> -DUWSGI_NAGIOS -DUWSGI_DEBUG -DUWSGI_PROXY -DUWSGI_EVDIS -DUWSGI_UGREEN
> -DUWSGI_SNMP -DUWSGI_THREADING -DUWSGI_PROFILER -DUWSGI_PASTE
> -DUWSGI_SENDFILE -I/usr/include/libxml2 -DUWSGI_XML -DUWSGI_XML_LIBXML2
> -DUWSGI_PLUGIN_DIR=\".\" -DUWSGI_SPOOLER -DUWSGI_WSGI2 -DUWSGI_DEBUG -g -o
> http.o http.c
> > gcc: http.c: No such file or directory
> > gcc: no input files
> > make: *** [all] Error 1
>
>
> Yes i have forgot (sorry) to 'hg add' the http.c during the last commit.
>
> You can revert back the latest commit or wait until my co-worker (i am out
> of office) send me
> the forgotten file :)
>
> --
> Roberto De Ioris
> http://unbit.it
> JID: roberto at jabber.unbit.it
>
> _______________________________________________
> uWSGI mailing list
> uWSGI at lists.unbit.it
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.unbit.it/pipermail/uwsgi/attachments/20100713/8c8064b7/attachment.htm 


More information about the uWSGI mailing list