Welcome! Log In Create A New Profile

Advanced

Re: Convert Apache rewrite to NGinx

GASPARD Kévin
March 06, 2013 08:42AM
Hi,

> On Sun, Mar 03, 2013 at 07:38:39PM +0100, GASPARD kévin wrote:
>
> Hi there,
>
>> >Probably a single extra try_files line will work for you.
>
>> This is my new config file :
>
>> location ~ \.php$ {
>
>> try_files $uri $uri/ /index.php?q=$uri&$args;
>> }
>
> You will probably find things much easier when you fully understand what
> is written at http://nginx.org/r/location

I understand a little more how it works now :).

>> http://doinalefort.fr/2013/hello-world/
>
> One request is handled in one location{}. That request does not match
> this location, and so will not be handled in this location.
>
> The try_files directive should be in a location that does match --
> perhaps "location / {}".
>
> f

I've created a new locations as you say and I've put the try_files
directive into, it works.

Cordially, Thanks :) !

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

Convert Apache rewrite to NGinx

GASPARD kévin March 03, 2013 07:54AM

Re: Convert Apache rewrite to NGinx

Francis Daly March 03, 2013 10:02AM

Re: Convert Apache rewrite to NGinx

GASPARD kévin March 03, 2013 01:40PM

Re: Convert Apache rewrite to NGinx

GreenGecko March 03, 2013 02:00PM

Re: Convert Apache rewrite to NGinx

GASPARD kévin March 03, 2013 02:20PM

Re: Convert Apache rewrite to NGinx

Francis Daly March 03, 2013 02:12PM

Re: Convert Apache rewrite to NGinx

GASPARD Kévin March 06, 2013 08:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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