Welcome! Log In Create A New Profile

Advanced

Re: rewrite help please...

All files from this thread

File Name File Size   Posted by Date  
smime.p7s 6 KB open | download GreenGecko 12/09/2012 Read message
smime.p7s 6 KB open | download GreenGecko 12/09/2012 Read message
smime.p7s 6 KB open | download GreenGecko 12/09/2012 Read message
December 09, 2012 04:08PM
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
Attachments:
open | download - smime.p7s (6 KB)
Subject Author Posted

rewrite help please... Attachments

GreenGecko December 09, 2012 01:08AM

Re: rewrite help please...

Francis Daly December 09, 2012 05:30AM

Re: rewrite help please... Attachments

GreenGecko December 09, 2012 03:52PM

Re: rewrite help please... Attachments

GreenGecko December 09, 2012 04:08PM

Re: rewrite help please...

Francis Daly December 10, 2012 02:52PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 167
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready