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
|