Sergey Shepelev
April 12, 2011 09:18AM
2011/4/12 kirpich <nginx-forum@nginx.us>:
> Добрый день, подскажите как сделать
> реврайт. Сайт написан с использованием
> Zend Framework. В данный момент реврайт
> выглядит так
>
>   location  / {
>
>            if ($request_filename != "index.php") {
>                rewrite ^(.*)$ /index.php;
>             }
>
> ....
>
> }
>
> если вызвать http://имя_сайта.ru/index.php
> вылазит зендовская ошибка,  а если
>  http://имя_сайта.ru/index.php/news открывается
> раздел news. Хотелось бы чтоб было
> http://имя_сайта.ru/news
>

location / {
proxy_pass http://apache/index.php$request_uri?;
}
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

спрятать index.php

kirpich April 12, 2011 08:59AM

Re: спрятать index.php

Sergey Shepelev April 12, 2011 09:18AM

Re: спрятать index.php

kirpich April 12, 2011 09:59AM

Re: спрятать index.php

Slava Kokorin April 12, 2011 10:06AM

Re: спрятать index.php

Sergey Shepelev April 12, 2011 10:34AM

Re: спрятать index.php

Igor Sysoev April 12, 2011 11:00AM

Re: спрятать index.php

Alexander Moskalenko April 12, 2011 11:46AM

Re: спрятать index.php

migosm April 12, 2011 12:13PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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