ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Nginx rewrite for Maxsite CMS


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: Nginx rewrite for Maxsite CMS
  • From: "xopek" <nginx-forum@xxxxxxxx>
  • Date: Thu, 03 Feb 2011 05:43:50 -0500
  • Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Date:Sender:From:References:In-Reply-To:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=0bGyUA6uFuJaxlbI4eZRLrsdp9bAsWRrQStTV3H/Nk8=; b=VNp+/SzejAemM70lZO+bJYPDJKwQJWvTolbqxfn/Z0bAnYTIPVXyQ7RkDlGbepbLZkyCwzqtEUmPAEwJ4bUSrtxOn4IWpO7oJfxj/XTD0lDR2lKUWMuc4gHaWUupWrvr;
  • In-reply-to: <20110203101341.GA83276@xxxxxxxxxxxxx>
  • References: <20110203101341.GA83276@xxxxxxxxxxxxx>

> Это неправильная
> конфигурация, вот
> правильная:
> 
>        location / {
>            try_files  $uri  $uri/   @maxsite;
>        }
> 
>        location ~ \.php {
>           fastcgi_pass  unix:/tmp/php-fpm.sock;
>           fastcgi_index index.php;
>           include fastcgi_params;
>           fastcgi_param SCRIPT_FILENAME
/path/to/maxsite$fastcgi_script_name;
>           fastcgi_param PATH_INFO $fastcgi_script_name;
>        }
> 
>        location @maxsite {
>           fastcgi_pass  unix:/tmp/php-fpm.sock;
>           include fastcgi_params;
>           fastcgi_param SCRIPT_FILENAME /path/to/maxsite/index.php;
>           fastcgi_param PATH_INFO /index.php$uri;
>        }
> 
> 
> -- 
> Igor Sysoev
> http://sysoev.ru/en/
> 
> _______________________________________________
> nginx-ru mailing list
> nginx-ru@xxxxxxxxx
> http://nginx.org/mailman/listinfo/nginx-ru

Такая правильная конфигурация выдает
ошибку 404 на любую страницу

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?21,125748,171828#msg-171828


_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.