<HTML><BODY>
При работе с энджин икс столкнулся с проблемой кеширования.Суть в том,
что не происходит запись закешированных файлов в определенную папку.<br>До
принятия решения о кешировании все модули и параметры были всегда
внимательно прочитаны на вашем сайте и проблем никогда не возникало, но в данной ситуации не получается так же
просто как и раньше.<br>Система FreeBSD.<br>Полный конфиг: <br><br>Генеральный конфиг:<br>user www www;<br><br>worker_processes 8;<br><br>error_log /pub/log/nginx/error_log notice;<br><br>pid /var/run/nginx.pid;<br><br>events {<br> worker_connections 4000;<br> use kqueue;<br> }<br><br>http {<br> include mime.types;<br> default_type application/octet-stream;<br> server_names_hash_bucket_size 1024;<br> client_header_timeout 1m;<br> client_body_timeout 1m;<br> send_timeout 1m;<br> keepalive_timeout 1m;<br> sendfile on;<br> tcp_nopush on;<br> tcp_nodelay on;<br> send_lowat 12000;<br> client_max_body_size 20m;<br> proxy_connect_timeout 60;<br> proxy_send_timeout 60;<br> proxy_read_timeout 60;<br> proxy_buffer_size 64k;<br> proxy_buffers 4 32k;<br> proxy_busy_buffers_size 64k;<br> proxy_buffering off;<br> large_client_header_buffers 4 16k;<br> gzip on;<br> gzip_min_length 1000;<br> gzip_proxied any;<br> gzip_types text/plain text/xml application/xml application/x-javascript text/javascript text/css text/json;<br> gzip_disable "msie6";<br> gzip_comp_level 6;<br><br> proxy_cache_path /home/www/cache levels=1:2 keys_zone=one:20m;<br><br> log_format main '$remote_addr - $remote_user [$time_local] "$request" '<br> '$status $body_bytes_sent "$http_referer" '<br> '"$http_user_agent" "$http_x_forwarded_for"';<br><br> access_log /pub/log/nginx/access_log main;<br><br>server {<br> listen 80 default rcvbuf=8k sndbuf=16k;<br> }<br><br>include /usr/local/etc/nginx/vhosts/*;<br><br><br><br>Виртуал хост:<br><br>upstream bak {<br> server 127.0.0.1:2003;<br> }<br><br><br>server {<br><br>reset_timedout_connection on;<br><br>listen ip:80;<br><br>server_name test.ru www.test.ru;<br><br>location ~* ^.+\.(htm|html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js)$ {<br> root /pub/home/vand/www2.vand.ru/www;<br><br>access_log off;<br>expires 3h;<br> }<br><br>location ~ /\.ht {<br> deny all;<br> }<br><br>location / {<br><br> proxy_set_header Host $http_host;<br> proxy_set_header X-Real-IP $remote_addr;<br> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br> proxy_pass http://bak/;<br> proxy_cache one;<br> proxy_cache_valid 200 301 302 304 5m;<br> proxy_cache_key "$host$request_uri $cookie_user";<br> proxy_hide_header "Set-Cookie";<br> proxy_ignore_headers "Cache-Control" "Expires";<br> }<br> }<br><br>Версия nginx: 0.8.54<br><br>Проблема: не кешируются страницы, в созданной папке не появляется ни один файл. Проблема конфига или же все таки версии энджин икса?<br><br>Вот кусок из еррор лога:<br><br>2010/12/20 22:11:05 [notice] 19761#0: using the "kqueue" event method<br>2010/12/20 22:11:05 [notice] 19761#0: nginx/0.8.54<br>2010/12/20 22:11:05 [notice] 19761#0: OS: FreeBSD 7.2-RELEASE<br>2010/12/20 22:11:05 [notice] 19761#0: kern.osreldate: 702000, built on 702000<br>2010/12/20 22:11:05 [notice] 19761#0: hw.ncpu: 12<br>2010/12/20 22:11:05 [notice] 19761#0: machdep.hlt_logical_cpus: 0<br>2010/12/20 22:11:05 [notice] 19761#0: net.inet.tcp.sendspace: 32768<br>2010/12/20 22:11:05 [notice] 19761#0: kern.ipc.somaxconn: 128<br>2010/12/20 22:11:05 [notice] 19761#0: getrlimit(RLIMIT_NOFILE): 11095:11095<br>2010/12/20 22:11:05 [notice] 19762#0: start worker processes<br>2010/12/20 22:11:05 [notice] 19762#0: start worker process 19763<br>2010/12/20 22:11:05 [notice] 19762#0: start worker process 19764<br>2010/12/20 22:11:05 [notice] 19762#0: start worker process 19765<br>2010/12/20 22:11:05 [notice] 19762#0: start worker process 19766<br>2010/12/20 22:11:05 [notice] 19762#0: start worker process 19767<br>2010/12/20 22:11:05 [notice] 19762#0: start worker process 19768<br>2010/12/20 22:11:05 [notice] 19762#0: start worker process 19769<br>2010/12/20 22:11:05 [notice] 19762#0: start worker process 19770<br>2010/12/20 22:11:05 [notice] 19762#0: start cache manager process 19771<br>2010/12/20 22:11:05 [notice] 19762#0: start cache loader process 19772<br>2010/12/20 22:11:05 [notice] 19762#0: signal 23 (SIGIO) received<br>2010/12/20 22:11:05 [notice] 19762#0: signal 23 (SIGIO) received<br>2010/12/20 22:11:05 [notice] 19762#0: signal 23 (SIGIO) received<br>2010/12/20 22:11:05 [notice] 19762#0: signal 23 (SIGIO) received<br>2010/12/20 22:11:05 [notice] 19762#0: signal 23 (SIGIO) received<br>2010/12/20 22:11:05 [notice] 19762#0: signal 23 (SIGIO) received<br>2010/12/20 22:11:05 [notice] 19762#0: signal 23 (SIGIO) received<br>2010/12/20 22:11:05 [notice] 19762#0: signal 23 (SIGIO) received<br>2010/12/20 22:11:05 [notice] 19762#0: signal 23 (SIGIO) received<br>2010/12/20 22:11:05 [notice] 19762#0: signal 23 (SIGIO) received<br>2010/12/20 22:11:05 [notice] 19762#0: signal 23 (SIGIO) received<br>2010/12/20 22:11:05 [notice] 19762#0: signal 23 (SIGIO) received<br>2010/12/20 22:12:05 [notice] 19772#0: http file cache: /home/www/cache 0.000M, bsize: 2048<br>2010/12/20 22:12:05 [notice] 19762#0: signal 20 (SIGCHLD) received<br>2010/12/20 22:12:05 [notice] 19762#0: cache loader process 19772 exited with code 0<br>2010/12/20 22:12:05 [notice] 19762#0: signal 23 (SIGIO) received<br>2010/12/20 22:12:05 [notice] 19762#0: signal 23 (SIGIO) received<br><br><br><br><br></BODY></HTML>