SSI not evaluated in memcache response
Xavier Grangier
grangier at gmail.com
Tue Mar 9 22:27:52 MSK 2010
Hello all,
I'm having trouble to have an SSI call beeing evaluated once cached in
memecache.
For instance.
When I call the first time the page '/test/' which produce the following
html:
'<html><!--# include virtual="/ssi/" --></html>'
the <!--# include virtual="/ssi/" --> block is replaced by the content of
the '/ssi/' page.
So the final output is: '<html>SSI</html>'
First call full debug log:
http://friendpaste.com/71X0cQMkW4qiS5NCuaDnkv
But once '/test/' is cached by memcache (cache value is '<html><!--# include
virtual="/ssi/" --></html>')
The ssi block is not evaluated end the final output is:
'<html><!--# include virtual="/ssi/" --></html>'
Second 'cached' call debug log:
http://friendpaste.com/455AEU8e1Aauv3mU6UQA9D
nginx 0.8.34
-------------------------------------------
upstream gunicorn {
server 127.0.0.1:8080;
}
server {
listen 0.0.0.0;
server_name localhost;
root /var/www/localhost/htdocs;
location @python {
ssi on;
proxy_pass http://gunicorn;
proxy_set_header Host $host;
}
location /ssi {
proxy_pass http://gunicorn;
proxy_set_header Host $host;
}
location / {
ssi on;
set $memcached_key $uri;#$urlmd5;
default_type "text/html; charset=utf-8";
memcached_pass 127.0.0.1:11211;
error_page 404 = @python;
error_page 502 = @python;
}
}
-------------------------------------------
Thanks in advance,
Xav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20100309/d8584fbe/attachment.html>
More information about the nginx
mailing list