Welcome! Log In Create A New Profile

Advanced

Re: Switching to nginx: php and rewrite rules from apache

Francis Daly
June 07, 2014 06:42AM
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@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@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Switching to nginx: php and rewrite rules from apache

Luciano Mannucci June 07, 2014 04:52AM

Re: Switching to nginx: php and rewrite rules from apache

Francis Daly June 07, 2014 05:10AM

Re: Switching to nginx: php and rewrite rules from apache

Luciano Mannucci June 07, 2014 06:10AM

Re: Switching to nginx: php and rewrite rules from apache

Francis Daly June 07, 2014 06:42AM

Re: Switching to nginx: php and rewrite rules from apache

Luciano Mannucci June 10, 2014 09:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 103
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