TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

NGINX as a SPDY reverse proxy for Node.js

4 pointsby victorquinnover 10 years ago

1 comment

modulooover 10 years ago
semi-optimal setup; ip_hash might give you issues if you have to server a lot of mobile-clients (at least here in europe), because of central proxies used by mobile-providers. this one might help if you need stickyness: <a href="https://bitbucket.org/nginx-goodies/nginx-sticky-module-ng/overview" rel="nofollow">https:&#x2F;&#x2F;bitbucket.org&#x2F;nginx-goodies&#x2F;nginx-sticky-module-ng&#x2F;o...</a><p>instead of &quot;if ($host !~ ^(api.yourdomain.com)$ )&quot; you should use a &quot;server_name api.yourdomain.com;&quot; - directive for your proxy_config and a catch_all - server{} block that consist only of &quot;return 444;&quot; to avoid that &quot;if&quot;-processing on any request.<p>oh, and you might want to use &quot;ssl_session_cache shared:SSL:1440m;&quot; for better performance (adjust the timeframe accordingly, i&#x27;ve seen values from 10 minutes up to 48hours like google)<p>&gt; SSL certs tend to be rather confusing ... no not, really, but i leave it up to you to figure out what a key is and what a cert :D
评论 #8451153 未加载