- NGINX Cookbook
- Tim Butler
- 118字
- 2021-07-03 00:04:30
How it works...
There are a number of directives which aren't seen elsewhere because this recipe uses a specific Passenger module. In the core NGINX configuration file, we set the generic Passenger variables to use the correct Ruby version as well as the user which will run the Passenger server.
In our server block directive, we point Passenger to our demo Rails instance and enable Passenger for the server instance. There's also a basic assets location block directive, so that NGINX will process the static media natively.
Lastly, we call passenger_pre_start to automatically start the Passenger application server when NGINX starts. This saves you having to start it separately, as is the case for most other application servers.
推薦閱讀
- Visual C++程序設計教程
- Kali Linux Web Penetration Testing Cookbook
- ASP.NET MVC4框架揭秘
- DevOps入門與實踐
- 數據結構(C語言)
- 程序員修煉之道:通向務實的最高境界(第2版)
- Mastering Ext JS
- 深入分布式緩存:從原理到實踐
- 新印象:解構UI界面設計
- Android Development Tools for Eclipse
- Moodle 3 Administration(Third Edition)
- Mobile Forensics:Advanced Investigative Strategies
- Drupal 8 Development Cookbook(Second Edition)
- 高質量程序設計指南:C++/C語言
- Windows 10 for Enterprise Administrators