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]

fastcgi header Expires, fast cgi_hide_header


  • To: nginx-ru@xxxxxxxxx
  • Subject: fastcgi header Expires, fast cgi_hide_header
  • From: <deepmindster@xxxxxxxxx>
  • Date: Thu, 26 Jun 2008 23:25:01 +0400
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=q8EAmifKHAfaw6NIkGpW1faA/2D206ghye/Rl3ZtGpw=; b=Jfdid4u/G2dgvTPiJ9sPG/feEME9BZfCM17G2jShm+c/D1qPLnO9swYidfgkFpm4IA zpHZ2lVSKzrD3jmZqgTezUV2kyiDKkcL/Syw5pvTpP+4Ry/7Y7Kfy3Lt8i3GTYPWetXY DwvN0aDcrrrsVKpRhC9+ulkAHxJReCKFHJxzY=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=Ch+BYlA6toUvB2g9UrgckuEVvn5h74JzwCOycCZ10gy2kPQFgpFw8RlvqmkZT+Ixvm 6NvQ9+MIkoJEwq34OOMqAgTBNeJ00d2wB0DENPM6MjM7Z1YUIn52qgrsN2JOpTqd+3Ag jwCfdk3+hlOEKgk2B8+hTPE1o7FFmMCJajDGY=

.

: expires, fastcgi-.
: , , 2 nginx-, () ip x.x.x.x () 127.0.0.1. fastcgi-, X-Accel-Redirect /saves/22.gif, . /saves nginx, expires 1y; . proxy_hide_header - , (, - ). fastcgi_hide_header . , , .

:

:

server {
listen x.x.x.x:80;
server_name exampe.com;

root /srv/www/vhosts/exampe.com;
index no-such-image;

access_log /var/log/nginx/example.com.access.log main;
error_page 404 403 =200 /no-such-image;
error_page 500 501 502 503 504 =200 /tech-problems;

client_max_body_size 16k;

location / {
rewrite ^/images/(\d+).*$ /index.php?image=$1 last;
deny all;
}

location = /index.php {
fastcgi_pass 127.0.0.1:1026;
fastcgi_param SCRIPT_FILENAME /srv/www/vhosts/example.com$fastcgi_script_name;
include fastcgi_params;

fastcgi_hide_header Expires;
fastcgi_hide_header Cache-Control;

internal;
}

location /saves {
proxy_pass http://127.0.0.1:1028/saves;

proxy_redirect off;

proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;

proxy_buffering off;

internal;
}
}


:
server {
listen 127.0.0.1:1028;
server_name example.com;

root /srv/www/vhosts/example.com;

access_log /var/log/nginx_127.0.0.1/example.com.access.log main;

client_max_body_size 16k;

location / {
deny all;
}

location /saves {
root /srv/www/vhosts/example.com;
expires 1y;
}
}



 




Copyright © Lexa Software, 1996-2009.