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: rewrite rul


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: rewrite rul
  • From: "yokodzun" <nginx-forum@xxxxxxxx>
  • Date: Thu, 21 Jul 2011 03:23:47 -0400
  • 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=87zunc/p+pXjtQRIbYpqF71IqVb82LeF5EfeJQVAiqg=; b=U44Z2foLgDcsTYAl0bdA18dt5psQyPz3byClEPJgAq48q6CEDg4RLTJ8MdCdxc2jogGOTHbJTO2m8NpUnh0CRX5FRpoChaU6atRD+Zpvxb5Mo1KtMEuNVKl+/O7mjRGz;
  • In-reply-to: <20110720190438.GA8399@xxxxxxxxx>
  • References: <20110720190438.GA8399@xxxxxxxxx>

Igor Sysoev Wrote:
-------------------------------------------------------

>   rewrite.  ӣ
>  :
> 
> server {
>         listen       80;
>         server_name domain.tld
> 
>         root  /v/http/domain.tld;
> 
>         location ~ \.php$ {
>             fastcgi_pass   
> unix:/tmp/php-fpm.sock;
>             fastcgi_param   DOCUMENT_ROOT
> /v/http/domain.tld;
>             fastcgi_param   SCRIPT_FILENAME
>                            
> /v/http/domain.tld$fastcgi_script_name;
>             include         fastcgi_params;
>         }
> 
>         location ~ ^/admin/(.*)$ {
>             try_files $uri $uri/
> /admin/index.php?$1;
>         }
> 
>         location ~ ^/(.*)$ {
>             try_files $uri $uri/ /index.php;
>         }
> }
> 

     CSS.

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

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


 




Copyright © Lexa Software, 1996-2009.