Имеется freebsd 9.1 с :
1)Nginx - Frontend на *:80 порту
2)Apache2 - Backend на 127.0.0.1:81 порту
3)Memcached 127.0.0.1:11211
4)php5.2+pecl-memcached+eaccelerator(extension=memcache.so, extension=eaccelerator.so)
Конфиг Nginx:
Код: Выделить всё
server {
listen 80;
server_name domain.com.ua http://www.domain.com.ua;
access_log /var/log/domain.com.ua.log;
location ~* \.(jpg|jpeg|gif|png|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|tar|wav|bmp|rtf|swf|ico|flv|txt|xml|docx|xlsx)$ {
root /home/www/domain.com.ua/;
index index.html index.php;
access_log off;
expires 30d;
}
location ~ /\.ht {
deny all;
}
location / {
proxy_pass http://127.0.0.1:81/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-for $remote_addr;
proxy_set_header Host $host;
proxy_connect_timeout 60;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_redirect off;
proxy_set_header Connection close;
proxy_pass_header Content-Type;
proxy_pass_header Content-Disposition;
proxy_pass_header Content-Length;
}
}
Вопрос, как правильно в нем включить Memcached?
И как задать через memcached_flags лог файл для мемкеша??
