- 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.
推薦閱讀
- Spring 5企業級開發實戰
- Boost C++ Application Development Cookbook(Second Edition)
- Visual Basic 6.0程序設計計算機組裝與維修
- Rake Task Management Essentials
- 深入淺出Prometheus:原理、應用、源碼與拓展詳解
- Twilio Best Practices
- Android程序設計基礎
- Photoshop CC移動UI設計案例教程(全彩慕課版·第2版)
- Java高并發編程詳解:深入理解并發核心庫
- HTML5+CSS3+jQuery Mobile+Bootstrap開發APP從入門到精通(視頻教學版)
- Managing Windows Servers with Chef
- Implementing Splunk(Second Edition)
- MonoTouch應用開發實踐指南:使用C#和.NET開發iOS應用
- Learning jqPlot
- Mastering Swift 4(Fourth Edition)