- NGINX Cookbook
- Tim Butler
- 77字
- 2021-07-03 00:04:29
How to do it...
Now that we have a very simple Express application, we'll place NGINX in front of it. Although Node.js is extremely fast, NGINX is not only faster but offers far more configurability. Even with WebSockets, we're still able to proxy this through NGINX. Let's take a look at the configuration:
server { listen 80; server_name express.nginxcookbook.com; access_log /var/log/nginx/express-access.log combined; location / { proxy_pass http://127.0.0.1:3000; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } }
推薦閱讀
- Advanced Splunk
- R語言數據可視化之美:專業圖表繪制指南
- MATLAB 2020 從入門到精通
- 數據庫系統原理及MySQL應用教程
- INSTANT Weka How-to
- Mastering matplotlib
- Python Network Programming Cookbook(Second Edition)
- Learning ArcGIS for Desktop
- Mastering Android Development with Kotlin
- Java程序設計入門
- Java Web開發就該這樣學
- 好好學Java:從零基礎到項目實戰
- 前端架構設計
- INSTANT Lift Web Applications How-to
- MySQL 5.7從入門到精通(視頻教學版)(第2版)