Welcome! Log In Create A New Profile

Advanced

Re: /dir/ rewrite to index.php

Daniel Podolsky
March 07, 2015 10:00AM
а где тут описана для /dir/ специальная обработка?

On Sat, Mar 7, 2015 at 4:18 PM, GTAlex <nginx-forum@nginx.us> wrote:
> /dir/
> обрабатывается так же как и корень
> почему?
>
> вот конфиг:
>
>
>
> location / {
> index index.php;
> try_files $uri /index.php$is_args$args;
> }
>
> location ~ ^/(index)\.php(/|$) {
> fastcgi_pass unix:/tmp/php-fpm.sock;
> fastcgi_split_path_info ^(.+\.php)(/.*)$;
>
> include /etc/nginx/fastcgi_params;
>
> fastcgi_param SCRIPT_FILENAME
> $document_root$fastcgi_script_name;
> fastcgi_param REQUEST_URI $uri;
>
> }
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?21,257121,257121#msg-257121
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-ru

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

Re: /dir/ rewrite to index.php

Daniel Podolsky March 07, 2015 10:00AM

Re: /dir/ rewrite to index.php

Dmitry March 07, 2015 10:06AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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