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



2010/6/23 Igor V. Fatkulin <ingvar@xxxxxxxxxx>:
>
>    .
>
>     nginx   
>  location,   - :
>
> location ~ ^/cgi-bin/script.cgi\?(.+)$ {
>     log_format scriptlog '$http_referer';
>     access_log logs/$1.log scriptlog;
> }
>
>      ,   ,  
>        ,   
>  .
>

   ""  .  
 .

-       if, 
   ,    
 if.

>   ,   php  cgi.
>
>     ,    
>    ?
>

location ~ ^/cgi-bin/script.cgi\?(.+)$ {
    log_format scriptlog '$http_referer';
    access_log logs/$1.log scriptlog;
    proxy_pass  http://somehost.ru:81/;
    proxy_set_header X-Real-IP $remote_addr;
}

>
>   
>    location / {
>      proxy_pass  http://somehost.ru:81/;
>      proxy_set_header X-Real-IP $remote_addr;
>    }
>
>    error_page  500 502 503 504 /50x.html;
>    location = /50x.html {
>      root  html;
>    }
>
>    location ~ /\.ht {
>      deny all;
>    }
>
>    location ~* 
> ^.+.(jpg|jpeg|gif|swf|ico|css|zip|tgz|gz|rar|bz2|doc|xls|iso|exe|pdf|ppt|txt|tar
 ݣ expires    . ()
>      root  /path/to/webroot;
>    }
>
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.