Re:

Denis F. Latypoff latypoff yandex.ru
3 07:51:34 MSK 2011


03.02.2011, 06:34, "" <server_inc at list.ru>:
> !
>
>    
>
> server {
> listen 127.0.0.1:80;
> server_name domain.org ;
>
> access_log /var/log/nginx/domain.org.access_log main;
> error_log /var/log/nginx/domain.org.error_log notice;
>
> error_page 500 502 503 504 /50x.html;
> location = /50x.html {
> root /usr/local/www/nginx-dist;
> }
>
- location ~ \.php$ {
- include php.settings;
- include fastcgi_params;
- }
>
> location / {
> root /var/www/domain.org;
> index index.php index.html;
> }
>
> location ~*
> \.(css|gif|mp3|html|ico|jpeg|jpg|js|png|txt|xml|html|swf)$ {
> root /var/www/domain.org;
> expires 1d;
> access_log off;
> }
>
- location ^~ /uploads_0/ {
+ location ~ ^/uploads_0/ {
> root /var/www/domain.org;
> include mime.types.secure;
> }
>
- location ^~ /uploads_N/ {
+ location ~ ^/uploads_N/ {
> root /var/www/domain.org;
> include mime.types.secure;
> }
>
- location ^~ /94ba1b16d3e2c/ {
+ location ~ ^/94ba1b16d3e2c/ {
> root /var/www/domain.org;
> include mime.types.secure;
> }
>
- location ^~ /821323/ {
+ location ~ ^/821323/ {
> root /var/www/domain.org;
> include mime.types.secure;
> }
>
+ location ~ \.php$ {
+ include php.settings;
+ include fastcgi_params;
+ }
> }
>
>  ,   ,  
> location ~* \.(css|gif|mp3|html|ico|jpeg|jpg|js|png|txt|xml|html|swf)$
>   ,       ?
>     ^~ ...   ,  
>  PHP ...
>
>    :(

     - :
http://sysoev.ru/nginx/docs/http/ngx_http_core_module.html#location

-- 
br, Denis F. Latypoff.



nginx-ru