On Mon, 2012-12-10 at 09:51 +1300, Steve Holdoway wrote:
> On Sun, 2012-12-09 at 10:29 +0000, Francis Daly wrote:
> > With the assumptions and changes from above, maybe
> >
> > location = / {
> > fastcgi_pass unix:php.sock;
> > include fastcgi_params;
> > fastcgi_param SCRIPT_FILENAME $document_root$page_redirect;
> > }
> >
> > is closer to what you want?
> >
> > Good luck with it,
>
> Thanks for the ideas Francis, it's cleaned up my config no end!
>
> This is a WordPress site, so all requests have to go to /index.php to be
> processed. The URL dictates the page returned.
>
> I can't seem to find a way of mimicing what I'm trying to do with your
> method, no matter what fastcgi_params I try setting up.
>
> Cheers,
>
>
> Steve
>
As with everything like this, 2 extra minutes with google found me the
answer. I need to add
fastcgi_param PATH_INFO $page_redirect;
and it works perfectly.
Chanks for putting me on the right track,
Steve
--
Steve Holdoway BSc(Hons) MIITP
http://www.greengecko.co.nz
Skype: sholdowa
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx