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



On Thu, Jul 21, 2011 at 03:23:47AM -0400, yokodzun wrote:
> 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.

  URL css     error_log ?


-- 
 
http://sysoev.ru

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


 




Copyright © Lexa Software, 1996-2009.