Switching to nginx: php and rewrite rules from apache

Francis Daly francis at daoine.org
Sat Jun 7 10:39:55 UTC 2014


On Sat, Jun 07, 2014 at 12:08:05PM +0200, Luciano Mannucci wrote:
> On Sat, 7 Jun 2014 10:08:54 +0100
> Francis Daly <francis at daoine.org> wrote:

Hi there,

> > * what request do you make?
> new.assirm.it/en/
> 
> > * what response do you get?
> The index.php page source.
> 
> > * what response do you want?
> The php interpreted result.

So, within your

        location ^~ /en/ {

add something like

        location ~ \.php$ {
            fastcgi_pass 127.0.0.1:9004;
        }

so that nginx knows to handle this request the way you want it to.

(If you have no other configuration, the nginx default is "serve the
file from the file system".)

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list