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: location nginx-devel-0.7.42 ?



On Wed, Mar 18, 2009 at 12:12:22AM +0200, Konstantin Belov wrote:

> P. S.   ,      
>    -  .

    "location ~* \.(jpg|jpeg|gif|css|js|png)$" ?

,    :

       location / {
               root   /var/home/enews/www/public_html;
               index  index.php index.html;
       }

       location ~ \.php$ {
               root   /www/public_html;
               fastcgi_pass unix:/tmp/enews.sock;
               include /usr/local/etc/nginx/fastcgi.conf;
       }

       location ~* \.(jpg|jpeg|gif|css|js|png)$ {
               root   /var/home/enews/www/public_html;
               access_log   off;
               expires      30d;
       }

  fastcgi.conf $document_root.


-- 
 
http://sysoev.ru



 




Copyright © Lexa Software, 1996-2009.