rewrite help please...
Steve Holdoway
steve at greengecko.co.nz
Sun Dec 9 21:05:58 UTC 2012
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 6189 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20121210/c1ece61b/attachment.bin>
More information about the nginx
mailing list