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
on 2010-03-09 20:28
on 2010-03-10 00:40
Hello! On Tue, Mar 09, 2010 at 08:27:52PM +0100, Xavier Grangier wrote: > I'm having trouble to have an SSI call beeing evaluated once cached in > memecache. [...] > location / { > ssi on; > set $memcached_key $uri;#$urlmd5; > default_type "text/html; charset=utf-8"; - default_type "text/html; charset=utf-8"; + default_type text/html; + charset utf-8; [...] Maxim Dounin
on 2010-03-10 09:27
Hello, > - default_type "text/html; charset=utf-8"; > + default_type text/html; > + charset utf-8; > thanks ! xav
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.