Roman Vasilyev
July 02, 2010 06:20PM
On 07/02/2010 02:42 PM, garrotte wrote:
> приветствую всех
> подниму темку, столкнулся с этим
> редиректом, при
>
> location / {
> index index.php index.html index.htm;
> }
>
> location = /index.php {
> if ($request_uri = /index.php) {
> rewrite ^ http://$host? permanent;
> }
>
seems like you need to add php handler in your (location = /index.php)
somesing like
fastcgi_pass ..... blah blah blah.
> }
>
> location ~ \.php$ {
> ..........
> }
> на запросы http://host.com и http://host.com/index.php
> выводит исходник скрипта
> товарищи, не подскажете, есть
> какое-нить приемлемое решение ?
> заранее спасибо
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,13598,104864#msg-104864
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>


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

index.php 301 redirect

ktm October 14, 2009 08:32AM

Re: index.php 301 redirect

Igor Sysoev October 14, 2009 09:16AM

Re: index.php 301 redirect

ktm October 14, 2009 10:22AM

Re: index.php 301 redirect

garrotte July 02, 2010 05:42PM

Re: index.php 301 redirect

garrotte July 02, 2010 06:57PM

Re: index.php 301 redirect

Roman Vasilyev July 02, 2010 06:20PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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