Quantcast
Channel: Nginx Forum
Viewing all articles
Browse latest Browse all 53287

Re: uWSGI + Moin (subdir) + Nginx

$
0
0
> Hi,
>
> I followed the example in:
>
> http://projects.unbit.it/uwsgi/wiki/Example#MoinMoinonlinenow
>
>
> However when I type domain/wiki I get a message that the page does not
> exist yet... which already tells me something is wrong, and also all my
> URL's are point to '/' not '/wiki'
>
> I can't seem to figure out why this happens... I tough using:
>
> uwsgi_param SCRIPT_NAME /wiki;
> uwsgi_modifier1 30;
>
> Would do the trick.... but It doesn't...
>


Do not use that trick, is pretty outdated and incredibly ugly.

Just let uWSGI do the SCRIPT_NAME rewrite, add the --manage-script-name to
the option (be sure to use the --mount way for loading moinmoin). The
nginx configuration will be simply


location /wiki {
include uwsgi_params;
uwsgi_pass ...;
}

--
Roberto De Ioris
http://unbit.it

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Viewing all articles
Browse latest Browse all 53287

Trending Articles