/dir/ rewrite to index.php
Dmitry
dmitry.goryainov at gmail.com
Sat Mar 7 15:04:55 UTC 2015
М.б. нужно
try_files $uri $uri/ /index.php$is_args$args;
?
On Sat, Mar 7, 2015 at 5:59 PM, Daniel Podolsky <onokonem at gmail.com> wrote:
> а где тут описана для /dir/ специальная обработка?
>
> On Sat, Mar 7, 2015 at 4:18 PM, GTAlex <nginx-forum at 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 at nginx.org
> > http://mailman.nginx.org/mailman/listinfo/nginx-ru
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-ru
>
--
Dmitry Goryainov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-ru/attachments/20150307/cf1da341/attachment.html>
Подробная информация о списке рассылки nginx-ru