Nginix upstream with socket seems filter some meta contents?
Posted
by Cheng
on Stack Overflow
See other posts from Stack Overflow
or by Cheng
Published on 2010-04-03T13:46:24Z
Indexed on
2010/04/03
13:53 UTC
Read the original article
Hit count: 188
I have a Rails3 app in the backend, served by ruby server Thin.
If I run and map thin as a socket
server unix:/tmp/thin.draft.sock;
Some meta data in the HTML will be missing.
<script src="/javascripts/application.js?1269808943" type="text/javascript"></script>
</head>
But it should be
<script src="/javascripts/application.js?1269808943" type="text/javascript"></script>
<meta name="csrf-param" content="authenticity_token"/>
<meta name="csrf-token" content="TPEA0Xa92wnPWnRLf+iUTk..."/>
</head>
If I run and map Thin at some port, it's all correct.
server 127.0.0.1:3000;
Wired problem. I'm going to check with Thin and Nginx. Any ideas?
© Stack Overflow or respective owner