Miguel Clara
March 25, 2013 02:14PM
Thanks for the hint... I though passing SCRIPT_NAME was a "ugly" way to do
into, but since it was refereed in the docs...

I was using mount:
uwsgi -s /tmp/moin.socket --uid nginx --gid nginx --mount
/wiki=/usr/pkg/share/moin/mywiki/moin.wsgi -M -p 2 -d
/var/log/nginx/uwsgi_moin.log --logdate --pidfile=/var/run/uwsgi_moin.pid

I added --manage-script-name has suggested, now it points to the right
direction... ;)

It would be nice if the link was updated with this info...

Many thanks,
Mike



On Mon, Mar 25, 2013 at 6:00 PM, Roberto De Ioris <roberto@unbit.it> wrote:

>
> > 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
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

uWSGI + Moin (subdir) + Nginx

Miguel Clara March 25, 2013 01:52PM

Re: uWSGI + Moin (subdir) + Nginx

roberto March 25, 2013 02:02PM

Re: uWSGI + Moin (subdir) + Nginx

Miguel Clara March 25, 2013 02:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 80
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready