ПРОЕКТЫ 


  АРХИВ 


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: nginx 0.6.35 - charset utf-8



конфиг следующий

user apache;
worker_processes 64;
worker_rlimit_nofile 20480;
worker_rlimit_sigpending 32768;

error_log  logs/error.log debug;

pid        logs/nginx.pid;

events {
   worker_connections 1024;
}

http {
   include       mime.types;
   default_type  application/octet-stream;

log_format main '$remote_addr - $remote_user [$time_local] $status '
                     '"$request" $body_bytes_sent "$http_referer" '
                     '"$http_user_agent" "http_x_forwarded_for"';

   access_log          off

   gzip                on;

   sendfile            on;
   tcp_nopush          on;
   tcp_nodelay         on;
   keepalive_timeout   15;
   ignore_invalid_headers on;

   server_names_hash_bucket_size 128;

######################
server {
       listen          ip:80;
       server_name     domain.com;
       charset         utf-8;
       root            /var/www/domain.com;

       location / {
           index  index.php;

       }
       location ~ \.php$ {
           fastcgi_pass   unix:/tmp/php.sock;
fastcgi_param SCRIPT_FILENAME /var/www/domain.com$fastcgi_script_name;
           fastcgi_index  index.php;
           include fastcgi_params;
       }
}
}



 




Copyright © Lexa Software, 1996-2009.